first sorry for my poor english.
from the multiplayer game example,
I want to create a counter after the first peer connect to the game (player n°2, player n°1 is the host)
Then start the counter and substract 1 every 1 second.
When the counter equal 0 i want to change the peer sprite from human to zombie (randomly between the connected peers).
basically, I want to create a system like the zombie mod in counter strike source.
I make a counter but it resets every time a new peer enter in the game.
Develop games in your browser. Powerful, performant & highly capable.
Ok I forgot to destroy the object ( counter in my exemple)