How to make a lives UI?

Does anyone know how to make a game overlay on your screen where you can see how many lives you have left, and then if you get knocked out then it goes down 1 number and if it reaches 0 then you will be switched to spectator? I need to find out so I can use it in my platformer battle royale.

1 Like

For the game overlay, just use an overlay device connected to, like, a button or something. Then, use a lifecycle
lifecycle :arrow_right: when player knocked out
Then place a counter that starts at however many “lives” you want the player to have.
Then, connect the lifecycle to the counter and when a player gets knocked out the counter goes down one.
Lifecycle :arrow_right: Counter

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.