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.

Check Collision<br />

This is the reverse of the previous action. It returns true if there is a collision when the current<br />

instance is placed at the given position (again, either only <strong>with</strong> solid objects or <strong>with</strong> all<br />

objects).<br />

Check Object<br />

This question returns true if the instance placed at the indicate position meets an instance of<br />

the indicated object.<br />

Test Instance Count<br />

You specify an object and a number. If the current number of instances of the object is equal<br />

to the number the question returns true. Otherwise it returns false. You can also indicate that<br />

the check should be whether the number of instances is smaller than the given value or larger<br />

than the given value. This is typically used to check whether all instances of a particular type<br />

are gone. This is often the moment to end a level or a game.<br />

Test Chance<br />

You specify the number of sides of a dice which is then thrown. Then if the dice lands on one,<br />

the result is true and the next action is performed. This can be used to put an element of<br />

randomness in your game. For example, in each step you can generate <strong>with</strong> a particular<br />

chance a bomb or a change of direction. The larger the number of sides of the dice, the<br />

smaller the chance. You can actually use real numbers. For example if you set the number of<br />

sides to 1.5 the next action is performed two out of three times. Using a number smaller than<br />

1 makes no sense.<br />

Check Question<br />

You specify a question. A dialog is shown to the player <strong>with</strong> a yes and a no button. The result<br />

is true is the player answers yes.<br />

Test Expression<br />

This is the most general question action. You can enter an arbitrary expression. If the<br />

expression evaluates to true (that is, a number larger or equal to 0.5) the next action is<br />

performed. See below for more information on expressions.<br />

Check Mouse<br />

Returns true if the indicated mouse button is pressed. A standard use is in the step event. You

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

Saved successfully!

Ooh no, something went wrong!