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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

provide the positions and the caption that must be placed in front of the number of lives. The<br />

number of lives is drawn in the current font. This action can only be used in the drawing event<br />

of an object.<br />

Draw Life Images<br />

Rather than drawing the number of lives left as a number, it is often nicer to use a number of<br />

small images for this. This action does precisely that. You specify the position and the image<br />

and at the indicated position the number of lives is drawn as images. This action can only be<br />

used in the drawing event of an object.<br />

Set Health<br />

<strong>Game</strong> <strong>Maker</strong> has a built-in health mechanism. You can use this action to change the health. A<br />

value of 100 is considered full health and 0 is no health at all. You simply provide the new<br />

value for the health. Often you want to subtract something from the health. In this case don't<br />

forget the check the Relative box. When the health becomes smaller or equal to 0 an out of<br />

health event is generated.<br />

Test Health<br />

With this question action you can check whether the health has reached a particular value.<br />

You indicate the value and whether the health should be equal to that value, be smaller than<br />

the value or be larger than the value.<br />

Draw Health<br />

With this action you can draw the health in the form of a health bar. When the health is 100<br />

the full bar is drawn. When it is 0 the bar is empty. You indicate the position and size of the<br />

health bar and the color of the bar and the background.<br />

Score Caption<br />

Normally in the window caption the name of the room and the score is displayed. With this<br />

action you can change this. You can indicate whether or not to show the score, lives, and/or<br />

health and what the caption for each of these must be.<br />

Drawing actions<br />

Normally in each step of the game, for each instance, its sprite is drawn in the room. You can<br />

change this by putting actions in the draw event. (Note that these are only executed when the

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

Saved successfully!

Ooh no, something went wrong!