This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-10-31 14:06:04

bethzg
Scratcher
Registered: 2008-10-30
Posts: 4

Back to the beginning

Let's say I'm creating a Scratch project. I'm building a script. I run it and then I want the sprites to go back to where they started. How do I get them back to their places so I can continue working on my script without dragging them there? I'm looking for some kind of "reset" feature. I'm doing this with 10 year olds. Any thoughts?

Offline

 

#2 2008-10-31 14:27:53

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Back to the beginning

In between the green flag script put

<go to x sad  Anywhere u want )y sad  Anywhere u want )

Offline

 

#3 2008-10-31 16:00:01

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Back to the beginning

Before you run the script for the first time, go to each sprite and drag the "goto x: y:" box onto the script window.

It will automatically contain their current location.  You can manually edit it if you want them to start elsewhere.

If you then put a "when green flag clicked" hat on top of it, the sprites will go back to that location at teh beginning of any test of the script.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#4 2008-10-31 17:59:17

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Back to the beginning

Brilliant trick, Mayhem! I didn't even think of this even though I (subconsciously) use it all the time, lol...


Jens Mönig

Offline

 

#5 2008-10-31 18:17:20

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Back to the beginning

I just click the motion block again then it shows your current location

Offline

 

Board footer