Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a stop sign detector...
- PhoenixLondon2008
- Scratcher
100+ posts
How to make a stop sign detector...
when green flag clicked
forever
reset timer
end
when [ timer] > (0.1)
show
"Darkness is just a place without any light."
-Me
- Th3_C0d3r
- Scratcher
100+ posts
How to make a stop sign detector...
***Read Below***
Last edited by Th3_C0d3r (Nov. 10, 2018 19:37:14)
define Help
repeat until <Universe ends>
if <<(Answer) = (Truth)> and <I get it>> then
broadcast [Thank helper v]
set [Mood v] to (Happy)
else
broadcast [Send more help v]
- NilsTheBest
- Scratcher
1000+ posts
How to make a stop sign detector...
Hi, it's nice that you're trying to help, but you should actually go on the topics on which people need help and help them, rather than making a new topic for that. Also, “stop sign detector” tutorials have already been made plenty of times
—
—
Not true; the timer starts running after the stop sign is pressed. Well first of all the timer will never be greater than 0.1sec if it's constantly getting reset back to zero.
NilsTheChair | 5 years on Scratch | 4000+ posts | former wiki editor | 332nd FPC | CoR founder
- DerpyHead0
- Scratcher
1000+ posts
How to make a stop sign detector...
this forum isn't for random help, please only use the forum to ask a question or to answer a question already on the forum.when green flag clicked
forever
reset timer
end
when [ timer] > (0.1)
show
the script detects when the stop button (red octogon, next to green flag) is pressed. in most cases it is supposed to stop the project from running. Well first of all the timer will never be greater than 0.1sec if it's constantly getting reset back to zero. Second of all for the purposes of make a stop, or rather sending a message to another script, using the timer block isn't very effective. Guessing from your scripts, you want one script to sign another to tell the sprite to show.
not that that's a good thing, the stop button is used as the one way to stop playing other than closing the page, and using it is just a bad gimmick at best.
when I start as a clone
delete this clone
- PhoenixLondon2008
- Scratcher
100+ posts
How to make a stop sign detector...
Hi, it's nice that you're trying to help, but you should actually go on the topics on which people need help and help them, rather than making a new topic for that. Also, “stop sign detector” tutorials have already been made plenty of times
—Not true; the timer starts running after the stop sign is pressed. Well first of all the timer will never be greater than 0.1sec if it's constantly getting reset back to zero.
Okay thanks for telling me
"Darkness is just a place without any light."
-Me
- Discussion Forums
- » Help with Scripts
- » How to make a stop sign detector...