Help with live player overlay counter

so yeah in the overlay blocks

1 Like

snom is all powerful

2 Likes

Alright let’s stop messing around:
Grab a property PlayersNum and make it a number.
Grab a lifecycle with player knocked out. Make it send on channel “player knocked out”.
Grab a overlay. Make it text and in the blocks (receive on player knocked out) make it set the property, PlayersNum to get property PlayersNum minus 1. Then make it set text to (make text with) players: & (get property) PlayersNum.
It’s relatively simple, unless you want it for other purposes such as game ending. However there are many guides on game ending and your system could use some help compared to the other guides. I would say use this:

2 Likes

Oops wrong link

2 Likes

just edit your original post

3 Likes

Ok more explaining, the way it works is:
A lifecycle triggers a all-player relay that sends on channel x. Then a counter increments on every channel x that it receives. The counter updates a property. The counter resets after the relay is done triggering. The property will then be used to create the text in the overlay.

2 Likes

w accidental advertising

2 Likes

the reason why it didn’t work is you need to make the property device broadcast on a channel that updates the overlay. e.g.

property:
when property value changes, broadcast on channel: update overlay

overlay —> blocks:
when receiving on channel: update overlay

do…

(the rest is the block code)

1 Like