Discuss Scratch

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.
minty_blue_goddess
Scratcher
5 posts

how to make a stop detector

can you show me how?
kvse
Scratcher
4 posts

how to make a stop detector

Sure! This simple code should work:

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!
106809nes
Scratcher
1000+ posts

how to make a stop detector

minty_blue_goddess wrote:

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
Help w/ scripts btw:
when green flag clicked
forever
reset timer
end
when [timer v] > (0.01)
...:: gray



“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

gdfsgdfsgdfg wrote:

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)

I have a simpler one

Detector whch uses a hacked scratch block (from 2.0 i think)
wait until <@stop clicked>
broadcast [ stop clicked v]
or
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)

Powered by DjangoBB