Discuss Scratch

Heacogra
Scratcher
71 posts

I need help

Ok so basically im trying to make a script to show how many people are playing the game at the time the player is playing the game. I tried using blocks and other stuff like that but I can figure it out. If you are able to do it please tell me. If its impossible to do please tell me. Thanks!

Looking for testers for my game!
If you are interested go to this forum topic
https://scratch.mit.edu/discuss/topic/301891/
NormallyNormal
Scratcher
24 posts

I need help

Use a global variable.
Make a script that looks like:
when green flag clicked
set [☁ people v] to [0]
forever
if <(☁ people) = [0]> then
wait (5) secs
change [☁ people v] by (1)
end
end
The delay is to make sure all active players are accounted for.

Last edited by NormallyNormal (Feb. 9, 2018 00:46:46)


I'm normal. Most of the time. I'm normally normal.
Heacogra
Scratcher
71 posts

I need help

Thanks!

Looking for testers for my game!
If you are interested go to this forum topic
https://scratch.mit.edu/discuss/topic/301891/

Powered by DjangoBB

Standard | Mobile