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

#1 2009-04-27 07:04:05

shirleycrossley
Scratcher
Registered: 2009-04-27
Posts: 2

Is it possible to undo an action after you have run it?

Hi I am learning how to use scratch ( and tehn teaching my pupils).  Is it possible to undo an action e.g turn 45 degrees after you run it, without jsut running turn -45 degrees.  The undo button just retreives deleted items.

Thanks in advance

Shirley

Last edited by shirleycrossley (2009-04-27 07:04:21)

Offline

 

#2 2009-04-27 07:29:10

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Is it possible to undo an action after you have run it?

can you be more clear? I can't figure out wat u want


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#3 2009-04-27 07:41:33

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Is it possible to undo an action after you have run it?

shirleycrossley wrote:

Hi I am learning how to use scratch ( and tehn teaching my pupils).  Is it possible to undo an action e.g turn 45 degrees after you run it, without jsut running turn -45 degrees.  The undo button just retreives deleted items.

Thanks in advance

Shirley

I don't believe you can, you will have to do the opposite action if you want to reverse something.


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#4 2009-04-27 07:52:31

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Is it possible to undo an action after you have run it?

There's nothing built into to Scratch that lets you do that.  But you could make a project that stores location and direction before applying the next move...and if you pick Undo, it would restore the last location and direction.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2009-04-27 16:17:00

shirleycrossley
Scratcher
Registered: 2009-04-27
Posts: 2

Re: Is it possible to undo an action after you have run it?

Thanks for your help. it is just I don't want pupils to get disheartened by having to start again if their sprite does not do what they plan it to do.

Offline

 

#6 2009-04-27 16:30:07

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Is it possible to undo an action after you have run it?

You might want to include the following in your sprite's code:

<when green flag clicked>
<go to x sad  0  )y sad  0  )>
<point in direction( 90  )>

Adjust the X, Y, and angle numbers for your purpose.

This will reset the sprite back to its original position whenever the green flag is pressed.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#7 2009-04-28 12:11:11

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Is it possible to undo an action after you have run it?

I belive that you can just get the sprite back to it's original position by clicking the picture of the sprite above the scripts button.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#8 2009-04-28 13:24:28

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Is it possible to undo an action after you have run it?

Stickman704 wrote:

I belive that you can just get the sprite back to it's original position by clicking the picture of the sprite above the scripts button.

As far as I know, that can only be used to set the spirte's direction, not position.

I usually do what BoltBait suggests, which is to have a script on each sprite that initializes it where I want it.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer