Copyright
by
The
Goodheart-Willcox
Co.,
Inc.
30 Introduction to Video Game Design
24. Click the OK button in the Sprite Properties dialog box to fi nish creating the sprite. The
sprite is added to the resource tree in the Sprites branch (folder).
25. Using similar steps, create a wall sprite named SPR_Wall using the wall_block.png image
fi le located in the Maze-Platform folder.
26. Save your game build before continuing (File Save or the Save the Game button on
the toolbar).
Adding and Naming Objects
You now have two sprites. They are listed in the resource tree in the Sprites branch.
However, sprites cannot be placed in the room, only objects. You now need to create objects,
have these objects “wear” the sprites, and then place the objects in the room (scene).
27. Click the Create an Object button on the toolbar. The Object Properties dialog box is
displayed, Figure 3-5.
28. In the Name: text box, type OBJ_Ball.
29. Look at the Sprite area, which currently states no sprite to indicate no sprite has been
assigned to the object. Click the selection button to the right of the no sprite display. A
list of available sprites is displayed.
30. Choose the SPR_Ball sprite from the list.
31. Check the Visible check box so that the ball object can be seen in the game.
Note: do not check the Solid check box to make the ball a solid object. Instead, moving
objects need to be programmed to act solid. Game Maker does not work as well when moving
objects are made solid. The objects may get stuck inside another solid object. Avoid making
moving objects solid in your game builds, but objects that will not move can be set to solid.
Save the
Game
Create an
Object
Name the object
Click to select
a sprite
Do not check Check to make
the object visible
Sprite
assigned
to object
Figure 3-5
Previous Page Next Page