How to keep track of deaths

I want a small little counter on the top left corner to keep cout of how many deaths you had

Create a lifecycle that checks for “Player Knocked Out” and wire it to a player-scoped counter

Event Occurs → Increment Counter

Connect the counter to a player-scoped property named “Deaths” the property should be number-based.

Now create a trigger loop, set a lifecycle that is on “Game Start” and wire it to the trigger loop.

Event Occurs → Trigger

Now get a game overlay that is text based and set it to the top-left corner, go to “Blocks” and create a block that triggers when receiving on the trigger loops channel, write this code:

Set Text:
J0in (Deaths: ) (Get Property: Deaths)
3 Likes

ahh I didn’t have time to write haha

How does a trigger loop work?

Ok uhm a trigger loop is a trigger that sends out the same channel for when its trigger for to triggering when receiving on a channel:
For example.
Trigger when receiving on: Triggerloop
When triggered, broadcast on: Triggerloop

1 Like

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