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.

Set Friction<br />

Friction slows down the instances when they move. You specify the amount of friction. In each<br />

step this amount is subtracted from the speed until the speed becomes 0. Normally you want<br />

a very small number here (like 0.01).<br />

Jump to Position<br />

Using this action you can place the instance in a particular position. You simply specify the x-<br />

and y-coordinate, and the instance is placed <strong>with</strong> its reference point on that position. If you<br />

check the Relative box, the position is relative to the current position of the instance. This<br />

action is often used to continuously move an instance. In each step we increment the position<br />

a bit.<br />

Jump to Start<br />

This action places the instance back at the position where it was created.<br />

Jump to Random<br />

This action moves the instance to a random position in the room. Only positions are chosen<br />

where the instance does not intersect any solid instance. You can specify the snapping used. If<br />

you specify positive values, the coordinates chosen <strong>with</strong> be integer multiples of the indicated<br />

values. This could for example be used to keep the instance aligned <strong>with</strong> the cells in your<br />

game (if any). You can specify a separate horizontal snapping and vertical snapping.<br />

Align to Grid<br />

With this action you can round the position of the instance to a grid. You can indicate both the<br />

horizontal and vertical snapping value (that is, the size of the cells of the grid). This can be<br />

very useful to make sure that instances stay on a grid.<br />

Wrap Screen<br />

With this action you can let an instance wrap around, that is, when it leaves on one side of the<br />

room it reappears at the other side. This action is normally used in the Outside event. Note<br />

that the instance must have a speed for wrapping to work, cause the direction of wrapping is<br />

based on the direction of the motion. You can indicate whether to wrap only horizontal, only<br />

vertical, or in both directions.<br />

Move to Contact<br />

With this action you can move the instance in a given direction until a contact position <strong>with</strong> an

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

Saved successfully!

Ooh no, something went wrong!