in the code archives i once saw this bar which displays the players health in a game. Unfortunately i cant find it anymore so i dont have the code.
This feature would fit really nicely to my game so if anyone has any ideas on how to make something like this i would much appreciate it.
I have tried a few things but came up with nothing. What i am aiming for is that whenever the player collides with a certain object, the bar gets shorter. When the 'health' of the player decreases to 0 ( the bar is gone) then he loses.
thanks all
This feature would fit really nicely to my game so if anyone has any ideas on how to make something like this i would much appreciate it.
I have tried a few things but came up with nothing. What i am aiming for is that whenever the player collides with a certain object, the bar gets shorter. When the 'health' of the player decreases to 0 ( the bar is gone) then he loses.
thanks all