pixeltroid
Member
As of now for my platform project, I have a working overhead health bar that correctly displays damage taken by player. I want to make it such that when the player dies, the following things should happen:
1. First we see "You died. Press space to restart" displayed on the screen (where the player died)
2. Player needs to hit "space" to restart game.
3. When game restarts, players is put back at the start of the room with his health bar reset to 100
I tried different tuts but each tut followed a different method and they didn't help me achieve the effect I wanted. I understand this "room restart" and "game over" thing involves health systems, rooms and text but I don't how how to go about it.
I am not a coder. Please explain slowly. Can someone please tell me what codes to put in what object?
Any help would be greatly appreciated!
P.S - For reference, I am working with obj_player and obj_healthbar
1. First we see "You died. Press space to restart" displayed on the screen (where the player died)
2. Player needs to hit "space" to restart game.
3. When game restarts, players is put back at the start of the room with his health bar reset to 100
I tried different tuts but each tut followed a different method and they didn't help me achieve the effect I wanted. I understand this "room restart" and "game over" thing involves health systems, rooms and text but I don't how how to go about it.
I am not a coder. Please explain slowly. Can someone please tell me what codes to put in what object?
Any help would be greatly appreciated!
P.S - For reference, I am working with obj_player and obj_healthbar
Last edited: