Help with live player overlay counter

Well then set it to decrement when player is knocked out.

1 Like

I do put it just stays there.

1 Like

you just talked about the counter tho.
check pxyelbite padlet

1 Like

I did and replied. You’re in.

2 Likes

You have to update it with blocks in the code I believe. There, you can set a channel for it to update on. Use the…

Create text with

…block.

1 Like

overlays can track properties

2 Likes

They can? I don’t have time to test it rn.

1 Like

Using blocks.

1 Like

no in the overlay’s settings!!!

2 Likes

really? can you give me a screenshot?

2 Likes

oh nvm. i was thinking of something else
im tired s my brain is like meh

1 Like


Snom says it all…

2 Likes

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