I want to create a life system for my game, so that every time the player loses, the level starts over again, subtracting the score they got in that level. It is a three level game.
thanks for your attention![]()
I want to create a life system for my game, so that every time the player loses, the level starts over again, subtracting the score they got in that level. It is a three level game.
thanks for your attention![]()
You have two options - using the built in lives function in the Player object under the Event editor, or dedicate a Global Value to lives and deduct/add as needed.
Lives are built in for that, check the lives object. You could also use a counter to control this by having the counter start at X lives and remove 1 per time the player dies in game.
Fun part about the counter is you can link it to individual objects giving each object it's own life as well.
I.E. 500 enemies that are the same enemy ( Same active object ) but each enemy gets damaged individually.