Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Detect New Scratchers
- 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?
How do I separate them?
yes
- dhuls
- Scratcher
1000+ posts
Detect New Scratchers
https://scratch.mit.edu/projects/328867312/
Just backpack the main sprite.
Just backpack the main sprite.
- 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???
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
Doesn't work because when you are a New Scratcher it treats cloud variables like normal variables. just make a cloud variablewhen 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
- orangetheory
- Scratcher
500+ posts
Detect New Scratchers
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 projectDoesn't work because when you are a New Scratcher it treats cloud variables like normal variables. just make a cloud variablewhen 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
- Discussion Forums
- » Help with Scripts
- » Detect New Scratchers