Discuss Scratch

CompassesHelpMe
Scratcher
61 posts

Detect New Scratchers

Hey I wanna make a multiplayer game, but because new scratchers can't affect cloud variables, i'd like to put them in a game with bots, or maybe straight up say “Yo. You can't play. Go get a life” or something.

How do I separate them?

yes
CompassesHelpMe
Scratcher
61 posts

Detect New Scratchers

Perfect.
Time to Segregate.

yes
CompassesHelpMe
Scratcher
61 posts

Detect New Scratchers

Wait-
I looked at the project closer…
They figured out how to tell if YOU'RE CONNECTED TO THE INTERNET???

yes
orangetheory
Scratcher
500+ posts

Detect New Scratchers

just make a cloud variable
when green flag clicked
set [☁ Player Check) v] to [0]
wait (1) secs
set [☁Player Check v] to [1]

when green flag clicked
forever
if <(☁ Player Check) = [1]> then
your code here::sensing // I recommend putting this into a custom block not a broadcast
end
if <(☁ Player Check) = [0]> then
your if you are a new scratcher code here::operators // I recommend putting this into a broadcast
end
end

-Frisbee- -Cricket--Basketball--Forums--Mapping--Coding--Trigonometry master--Mathematics King--Future Prime Minister--Intro-Maker-
I know HTML/CSS, and JavaScript, and with these coding skills I have made some decent projects! Test them out below!
~Archery~Cops + Robbers~
Want an intro, outro, music, effects, or more? Check out the intro shop!

The forum helpers, a place where we help people in the forums
dhuls
Scratcher
1000+ posts

Detect New Scratchers

orangetheory wrote:

just make a cloud variable
when green flag clicked
set [☁ Player Check) v] to [0]
wait (1) secs
set [☁Player Check v] to [1]

when green flag clicked
forever
if <(☁ Player Check) = [1]> then
your code here::sensing // I recommend putting this into a custom block not a broadcast
end
if <(☁ Player Check) = [0]> then
your if you are a new scratcher code here::operators // I recommend putting this into a broadcast
end
end
Doesn't work because when you are a New Scratcher it treats cloud variables like normal variables.
orangetheory
Scratcher
500+ posts

Detect New Scratchers

dhuls wrote:

orangetheory wrote:

just make a cloud variable
when green flag clicked
set [☁ Player Check) v] to [0]
wait (1) secs
set [☁Player Check v] to [1]

when green flag clicked
forever
if <(☁ Player Check) = [1]> then
your code here::sensing // I recommend putting this into a custom block not a broadcast
end
if <(☁ Player Check) = [0]> then
your if you are a new scratcher code here::operators // I recommend putting this into a broadcast
end
end
Doesn't work because when you are a New Scratcher it treats cloud variables like normal variables.
I never knew that, thanks for letting me know from what I heard it treats cloud variables, when you are a new scratcher, as a deactivated element of the project

-Frisbee- -Cricket--Basketball--Forums--Mapping--Coding--Trigonometry master--Mathematics King--Future Prime Minister--Intro-Maker-
I know HTML/CSS, and JavaScript, and with these coding skills I have made some decent projects! Test them out below!
~Archery~Cops + Robbers~
Want an intro, outro, music, effects, or more? Check out the intro shop!

The forum helpers, a place where we help people in the forums

Powered by DjangoBB