08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sleep<br />

With this action you can freeze the scene for a particular time. This is typically used at the<br />

beginning or end of a level or when you give the player some message. You specify the<br />

number of milliseconds to sleep. Also you can indicate whether the screen should first be<br />

redrawn to reflect the most recent situation.<br />

Display Message<br />

With this action you can display a message in a dialog box. You simply type in the message. If<br />

you use a # symbol in the message text it will be interpreted as a new line character. (Use \#<br />

to get the # symbol itself.) If the message text starts <strong>with</strong> a quote or double quote symbol, it<br />

is interpreted as an expression. See below for more information about expressions.<br />

Show Info<br />

With this action you pop up the game information window.<br />

Restart <strong>Game</strong><br />

With this action you restart the game from the beginning.<br />

End <strong>Game</strong><br />

With this action you end the game.<br />

Save <strong>Game</strong><br />

With this action you can save the current game status. You specify the filename for saving<br />

(the file is created in the working directory for the game). Later the game can be loaded <strong>with</strong><br />

the next action. (Please realize that only the basic game status is save. Things that are for<br />

example not saved are the current sound that is playing, and advanced aspects like the<br />

contents of data structures, particles, etc.)<br />

Load <strong>Game</strong><br />

Load the game status from a file. You specify the file name. Make sure the saved game is for<br />

the same game and created <strong>with</strong> the same version of <strong>Game</strong> <strong>Maker</strong>. Otherwise an error will<br />

occur. (To be precise, the game is loaded at the end of the current step. So some actions after<br />

this one are still executed in the current game, not the loaded one!)<br />

Control actions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!