Copyright
by
The
Goodheart-Willcox
Co.,
Inc.
34 Introduction to Video Game Design
61. At the bottom of the Move Fixed dialog box is a matrix of directional arrows. Click the four
diagonal arrows to select them. Selected arrows are red, while unselected arrows are blue.
When the game is played, one of the selected directions will be randomly applied to the
object. This means that the ball will randomly travel in one of these four directions. Do not click
the center square. The center square is no movement. If you were to run the game right now,
even with the directions selected, the ball would not move because it would be traveling at a
speed of zero.
62. In the Speed: text box, enter 10. This setting will have Game Maker move the OBJ_Ball
object ten pixels for every one step of time. The default setting for a step is 30 per second.
63. How many pixels will the ball move in one second? ________________________________
To change the speed of all objects, you can also change the step number. If the step number
is increased, the speed will increase. If the step number is decreased, the speed will decrease.
If you wanted the ball to travel 120 pixels in one second and entered 2 in the object’s Speed:
setting, what would the step number need to be to get the ball to move properly?
___________________________________________________________________________
The step number setting is not changed in the Move Fixed dialog box. You will not change this
setting for this lesson, but you will change the step number in later activities.
Relative is a term that means “from where it was before.” If the ball is already moving
at a speed of five, a relative speed of ten would increase the speed by ten, not to ten. In other
words, the new speed would be 15. What would be the speed of an object traveling at a speed
of 15 when the speed is increased for a Speed: setting of 10 relative?
___________________________________________________________________________
64. Make sure the Relative check box is unchecked.
65. Click the OK button in the Moved Fixed dialog box.
66. Close the Object Properties dialog box, saving the changes when prompted.
67. Save your work.
Movement should be
applied to the ball (self)
Select the four
diagonal arrows
Leave
unchecked
Set the speed
Figure 3-9