Showing posts with label healthbar. Show all posts
Showing posts with label healthbar. Show all posts

Thursday, January 27, 2011

How to add health to your game.



In this video, you will learn how to add health and a health bar to your game.
Here is the code that I used to draw the health bar.
Code:
draw_sprite_stretched(HEALTH,0,x-5,y-14,hp,6)