Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » how to make a stop detector
- minty_blue_goddess
- Scratcher
5 posts
how to make a stop detector
Hi i'm new to scratch and would like help on making a stop button detector (going to be used for a game) if someone could help me id really like that
- kvse
- Scratcher
4 posts
how to make a stop detector
Although it is not possible to detect when someone stops a project, you can make it so a sprite only shows when a project is stopped.
- kvse
- Scratcher
4 posts
how to make a stop detector
Sure! This simple code should work:
This works because the ghost block only works when a project is running.
when green flag clicked
set [ghost] effect to (0)
This works because the ghost block only works when a project is running.
- minty_blue_goddess
- Scratcher
5 posts
how to make a stop detector
ooooooooooooh thanks thats really cool!!!
- kvse
- Scratcher
4 posts
how to make a stop detector
Yeah, no problem! Just make sure to put the sprite to coordinates 0, 0.
If you have any questions, please ask!
If you have any questions, please ask!
- 106809nes
- Scratcher
1000+ posts
how to make a stop detector
Help w/ scripts btw: Hi i'm new to scratch and would like help on making a stop button detector (going to be used for a game) if someone could help me id really like that
when green flag clicked
forever
reset timer
end
when [timer v] > (0.01)
...:: gray
My first ever ninja | TRIPLE NINJA | No. | Quickest Ninja | My TamaNOTchi | Rentry | Legendary. | Sign Out | Stay
“MY daughter wants to see MEEEEEEEEEEEEE! TAKE THAT DEPREssion..!” - Lucifer 2024
- gdfsgdfsgdfg
- Scratcher
1000+ posts
how to make a stop detector
when [timer v] > (timer ::variables)
forever
set [timer v] to (timer)
end
when gf clicked
forever
set [timer v] to (timer)
end
when [timer v] > (timer ::variables)
non stoppable workaround
no resting timer
(probably doesn’t work on certain scripts)
Last edited by gdfsgdfsgdfg (Nov. 2, 2023 00:41:23)
1000th post also use -forbidden- or highlight and ctrl (optional on some browsers) + shift + down arrow for more of my siggy
I gotta go touch sum grass
If it causes issues make it optional - gdfsgdfsgdfg
Do some research before replying to my posts - gdfsgdfsgdfg
curse you 60 sec rule
glory to Gdfsg Land
gdfsgdfsgdfg returns
Ocular(don’t look at my old posts plz)
PostPercent
kumquats? nah
my siggy is built with titani- *gets eaten*
Gdfsg Radio Station:
https://scratch.mit.edu/projects/1000736602
Are you sleeping you tall cat (project):
https://scratch.mit.edu/projects/1002042247/
The only suggestions I fully support are:
https://scratch.mit.edu/projects/924995948/
Don’t force me to get proof
get it yourself
my favorite topic is this (due to comedic purposes):
https://scratch.mit.edu/discuss/topic/709979/
my favorite post is this (it’s deleted but I got it from ocular):
https://ocular.jeffalo.net/post/7517300
Grand borrowing cars IV intro and loading (template):
https://scratch.mit.edu/projects/972295666/
Guess the game by its mission name:
https://scratch.mit.edu/discuss/topic/750145/
GBC (GTA) topic:
https://scratch.mit.edu/discuss/topic/751981/
BF (Battlefield) topic:
https://scratch.mit.edu/discuss/topic/753243/
still don’t have the popularity lol (atleast I reached 100 followers)
Skill issue
reject
Embrace :)
- GevoTheReal
- Scratcher
3 posts
how to make a stop detector
when green flag clicked
forever
reset timer
end
when [(timer)] > (0.01)
Last edited by GevoTheReal (March 3, 2024 05:00:39)
- minty_blue_goddess
- Scratcher
5 posts
how to make a stop detector
bro i posted this last year why does it still work ;-;
- Digitat321
- Scratcher
13 posts
how to make a stop detector
when [timer v] > (timer ::variables)
forever
set [timer v] to (timer)
endwhen gf clicked
forever
set [timer v] to (timer)
endwhen [timer v] > (timer ::variables)
non stoppable workaround
no resting timer
(probably doesn’t work on certain scripts)
I have a simpler one
Detector whch uses a hacked scratch block (from 2.0 i think)
wait until <@stop clicked>or
broadcast [ stop clicked v]
if <@stop clicked> then
broadcast [ stop clicked v]
This is my guard Digi!
(¬‿¬::motion)He doesn't like evil Kumquats and he helps with programming!
These are his friends (some are fighting the Kumquats and are busy)
(¬_¬::looks)
(̿▀̿ ̿Ĺ̯̿̿▀̿ ̿::operators)
( .-.::sensing)
(⌐■_■::control)
( ︶︿︶::events)
- Discussion Forums
- » Questions about Scratch
- » how to make a stop detector