Designing Games with Game Maker
ScoreOther important aspects of many games are the score, the health, and the number of lives. Game Maker keeps track of the score in a global variable score and the number of lives in a global variable lives. You can change the score by simply changing the value of this variable. The same applies to health and lives. If lives is larger than 0 and becomes smaller than or equal to 0 the no-more-lives event is performed for all instances. If you don't want to show the score and lives in the caption, set the variable show_score, etc., to false. Also you can change the caption. For more complicated games best display the score yourself.
score The current score. « Transitions | Generating events » |
Alternative versions
|
You can also read this manual on one single long page (± 1.5 mb) Also available in: ![]() Download helpfile
|





