Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a script only run once?
- inhabitants
-
14 posts
how to make a script only run once?
I have a script that reads as follows;
I want this script only to run once, not to broadcast “start” everytime the space button is clicked. how do I do this?
I want this script only to run once, not to broadcast “start” everytime the space button is clicked. how do I do this?
Last edited by inhabitants (Dec. 17, 2019 14:01:59)
- inhabitants
-
14 posts
how to make a script only run once?
I already tried that, but it didnt work
Try this after that
- MeeYi
-
34 posts
how to make a script only run once?
I already tried that, but it didnt work
Try this after that
Is it possible to
- inhabitants
-
14 posts
how to make a script only run once?
nope, that didnt work either.I already tried that, but it didnt work
Try this after that
Is it possible to
- trucksarenoisy
-
100+ posts
how to make a script only run once?
For example when you click green flag set a variable to 1.
When you press space, it sets it to 0 and when you press it again it will not do it again.
Script:
Make sure you set the variable to zero after running it the script.
When you press space, it sets it to 0 and when you press it again it will not do it again.
Script:
Make sure you set the variable to zero after running it the script.
Last edited by trucksarenoisy (Dec. 17, 2019 14:29:45)
- happywaffle0
-
100+ posts
how to make a script only run once?
Thank you this also helped!!
thanks for knocking one person that needs help off the first page

seriously though, please do not necropost. this post was made almost 5 years ago and was already fixed.
Necroposting is when you reply to an inactive post for >2 weeks. It is necroposting when you give a solution that has no value. value is based off if the problem is about to be, or is, or hasn't been solved yet.
- Discussion Forums
- » Help with Scripts
-
» how to make a script only run once?