Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to reset everything back to the original positions
- wendenator
-
4 posts
How to reset everything back to the original positions
I'm having trouble resetting my project back to the beginning. Within my script, there is the possibility that a sprite “hides” and I want that sprite to unhide at the very end (and not before the end) so that the entire script can begin from the start. What is happening is that the sprite stays hidden until I manually go into the editor and click “show” again. How to I get the sprites to reappear when I click on the green flag?
- deck26
-
1000+ posts
How to reset everything back to the original positions
I'm having trouble resetting my project back to the beginning. Within my script, there is the possibility that a sprite “hides” and I want that sprite to unhide at the very end (and not before the end) so that the entire script can begin from the start. What is happening is that the sprite stays hidden until I manually go into the editor and click “show” again. How to I get the sprites to reappear when I click on the green flag?
when green flag clicked
show
- Cyoce
-
500+ posts
How to reset everything back to the original positions
when gf clicked
go to x: (starting x position :: grey) y: (starting y position :: grey)
show
Last edited by Cyoce (Jan. 4, 2015 22:30:21)
- Alberknyis
-
1000+ posts
How to reset everything back to the original positions
In the stage:
when green flag clicked
broadcast [init v] and wait
Every sprite:
when I receive [init v]
reset::motion //Put any reset blocks here
- wendenator
-
4 posts
How to reset everything back to the original positions
Thank you for your help! Actually while waiting I found another way to fix it (although more time consuming probably). For each sprite I added the event “When backdrop changes to (original backdrop)” >“Show.” I appreciate how quickly you came to my rescue!
Thank you so much!

- deck26
-
1000+ posts
How to reset everything back to the original positions
That method is OK but if you change the original backdrop to something else you'll have to do the same again. The green flag (possibly calling an initialisation script) is probably a better option. Thank you for your help! Actually while waiting I found another way to fix it (although more time consuming probably). For each sprite I added the event “When backdrop changes to (original backdrop)” >“Show.” I appreciate how quickly you came to my rescue!Thank you so much!
- Discussion Forums
- » Help with Scripts
-
» How to reset everything back to the original positions