Pages: 1
Topic closed
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
can you be more clear? I can't figure out wat u want
Offline
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.
Offline
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.
Offline
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
You might want to include the following in your sprite's code:
<when green flag clicked>
<go to x
0 )y
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.
Offline
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.
Offline
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.
Offline
Topic closed
Pages: 1