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.

loading. You can also save and load games from <strong>with</strong>in a piece of code (note that loading only<br />

takes place at the end of the current step).<br />

game_save(string) Saves the game to the file <strong>with</strong> name string.<br />

game_load(string) Loads the game from the file <strong>with</strong> name string.<br />

Please realize that only the basic game data is being saved. If for example you play a<br />

particular piece of music, the precise position in the music is not saved. Also changed<br />

resources are not saved. Other things that are not saved are the contents of data structures,<br />

particles, and multiplayer settings.<br />

Transitions<br />

When you move from one room to another you can select a transition. To set the transition to<br />

the next frame you must set the variable called transition_kind. If you assign a value<br />

larger than 0 to it the corresponding transition is used for the next room transition. It only<br />

affect the next transition. After this the value is reset to 0, which indicates no transition.<br />

transition_kind Indicates the next room transition. You can use the<br />

following builtin values<br />

0 = no effect<br />

1 = Create from left<br />

2 = Create from right<br />

3 = Create from top<br />

4 = Create from bottom<br />

5 = Create from center<br />

6 = Shift from left<br />

7 = Shift from right<br />

8 = Shift from top<br />

9 = Shift from bottom<br />

10 = Interlaced from left<br />

11 = Interlaced from right<br />

12 = Interlaced from top<br />

13 = Interlaced from bottom<br />

14 = Push from left<br />

15 = Push from right

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

Saved successfully!

Ooh no, something went wrong!