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.

action it lets the instance take a step towards a particular position. But in this case it tries to<br />

avoid obstacles. When the instance would run into a solid instance (or any instance) it will<br />

change the direction of motion to try to avoid the instance and move around it. The approach<br />

is not guaranteed to work but in most easy cases it will effectively move the instance towards<br />

the goal. For more complicated cases, there are motion planning functions. You specify the<br />

position to move to, the speed <strong>with</strong> which to move, that is, the size of the step, and whether<br />

the motion should avoid solid instances or any instance.<br />

More main actions<br />

Some additional main actions are available in advanced mode. The following actions are<br />

added:<br />

Set Time Line<br />

(Only available in advanced mode.) With this action you set the particular time line for an<br />

instance of an object. You indicate the time line and the starting position <strong>with</strong>in the time line<br />

(0 is the beginning). You can also use this action to end a time line by choosing No Time Line<br />

as value.<br />

Time Line Position<br />

(Only available in advanced mode.) With this action you can change the position in the current<br />

time line (either absolute or relative). This can be used to skip certain parts of the time line or<br />

to repeat certain parts. For example, if you want to make a looping time line, at the last<br />

moment, add this action to set the position back to 0. You can also use it to wait for<br />

something to happen. Just add the test action and, if not true, set the time line position<br />

relative to -1.<br />

Show Video<br />

With this action you can show a video/movie file. You specify the file name and whether it<br />

should be shown full screen or in the game window. Make sure the video file exists. You<br />

should either distribute it <strong>with</strong> the game or include it in the game through the Global <strong>Game</strong><br />

Settings. This action is only available in the Pro Edition.<br />

Replace Sprite<br />

This action can be used to replace a sprite from the contents of a file. You indicate the sprite<br />

you want to replace, the filename and the number of subimages in the sprite. Many different

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

Saved successfully!

Ooh no, something went wrong!