Help, tutorials and examples for Game Maker

Hexsweeper 2
click to visit
Minesweeper redefined!

Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.
Spiral Lords
click to visit
Lead your empire to conquer the galaxy.

The Black Hole that Wants to Eat Me
click to visit
Stranded in space close to a black hole...
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2017)

Health  download now

Health is used in almost every game. But in most games, you also need to show this health. This is very easy in GM, until you try to apply it to multiple instances. The predefined health in GM is a global variable. It can't be used for more than one character. This tutorial tells you how to get it right.


General Rating
Your Rating*


By Comment
Well, good luck with your game, then.
Hiya troll! This is Ludwig X from YoYo. Thanks for this tutorial. It helped me in my game. :)
I'm glad to hear this, $MonehGames$. May your characters have much health :)
Wow, this tutorial is awesome! In fact, all of your tutorials are awesome! Thnkas, this tutorial really helped Trollsplatterer.
When I create a menu room, on my game.
I have text HP and ammo.

when I have a single room, all is fine.
But if I create a menu room that goes to another room
I always get this message:

Error in code at line 7:

at position 26: Unknown variable HP

Please help me.

My Yoyo account name is ubermagivftw
please message me

If you need specific help, PM me on YoYo Games or send me an e-mail ( with details on what you need and what your game looks like.
help me make a hp bat for my game

* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.