A Game with more Substance
Game Maker 7
Karen Webster - Alexandra Secondary College
Page 1
A Game with more Substance Add a Character Add a sprite Load sprite Choose sprite
Name sprite
Karen Webster - Alexandra Secondary College
Page 2
A Game with more Substance Create an Object Add object
Choose sprite
Name object
Karen Webster - Alexandra Secondary College
Page 3
A Game with more Substance Create a Room Add room Add object to room
Add walls to the room Add sprite – choose a picture that has the appearance of a square block Walls need to be solid Add object – use the sprite you just created Double Click room Choose objWall as Object to add Add the object to the room
Run the game
or press F5
Press Esc to exit game
Karen Webster - Alexandra Secondary College
Page 4
A Game with more Substance Make Object Move Double click on object to bring up the dialogue box Click Add Event Choose Key Press And then choose
Drag the right arrow into the Actions pane Add a hor. Speed of 8
Repeat for movement to the using -8 Repeat for -8 and down 8 Run the game
or press F5
Press Esc to exit game
Karen Webster - Alexandra Secondary College
Page 5
A Game with more Substance Make the Object bounce off the walls Double click on object to bring up dialogue box Click add event Choose Collision Choose objWall
Check settings: Precise can remain as not precisely If you ticked solid when creating objWall, leave as solid objects. If not change to all objects
Run the game
or press F5
Press Esc to exit game
Karen Webster - Alexandra Secondary College
Page 6
A Game with more Substance Create an Explosion Add a sprite that looks like fire Create an object for the sprite you just created Click Add Event Choose Other Choose Animation end
Choose main1 Drag bin to actions pane Choose Self Click OK
Karen Webster - Alexandra Secondary College
Page 7
A Game with more Substance Double click on objWall Add Event Choose Collision Choose Character object Choose main1
Drag
Change Instance to Action pane
Choose objExplosion Make sure perform events is yes
Run the game
or press F5
Press Esc to exit game
Karen Webster - Alexandra Secondary College
Page 8
A Game with more Substance Add Sound to the Explosion Create a Sound Click Load Sound Choose a sound Name sound
Double click on object with Collision Event Drag Sound into Action pane Choose sound
Karen Webster - Alexandra Secondary College
Page 9
A Game with more Substance Something to Shoot at Add something to shoot at Add a sprite Load sprite Choose sprite Name sprite Add an object Choose the sprite you just created Name object Add Event Choose Other Choose Room Start Drag the Move Fixed icon into the Action pane Select all directions Speed = 8
Karen Webster - Alexandra Secondary College
Page 10
A Game with more Substance Choose Add Event Choose Collision Choose objWall Leave as precise: not precisely Against: solid objects
Add object to the room
Karen Webster - Alexandra Secondary College
Page 11
A Game with more Substance Something to Shoot with Add a sprite Load Sprite Choose sprite (try the dot) Add object Choose sprite Name object Add Event Keyboard <Space> Drag Horizontal Speed into Actions pane Hor. Speed = 15 Destroy Bear
Add Event Collision Choose objBullet Select main1 Drag Destroy Instance into Actions pane
Karen Webster - Alexandra Secondary College
Page 12
A Game with more Substance Double click on the object that will be shooting Add Event Choose Keyboard Choose <Space> Select main1 Drag Create Instance into Actions pane Object: objBullet X: 0 Y: 0 Tick Relative box
You can add sound to the bullet by: Add a sound Choose sound Name sound On Shooting object Choose Event <Space> Select main1 Drag Sound to Actions pane Sound = sound just created
Karen Webster - Alexandra Secondary College
Page 13