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

#1 2009-05-07 08:06:54

toby2
Scratcher
Registered: 2009-05-07
Posts: 1

Restart project from the beginning?

Hi, when I play a project inside Scratch, how can I "rewind" it back to its beginning, to start it running again?

Thanks
Toby

Offline

 

#2 2009-05-07 08:23:10

ScratchX
Scratcher
Registered: 2009-05-05
Posts: 1000+

Re: Restart project from the beginning?

here click on the green flag and it will go back to the beginning and if that doesn't then refresh the page


Happy New Year!
http://i45.tinypic.com/1nyasi.pnghttp://i50.tinypic.com/219pez8.pnghttp://i49.tinypic.com/e5s4zr.pnghttp://i48.tinypic.com/23l18hf.jpghttp://i49.tinypic.com/66zymu.png

Offline

 

#3 2009-05-07 11:47:35

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

Re: Restart project from the beginning?

You need to put in scripts starting with When Green Flag Clicked for all your sprites that will set the starting position, costume, direction and so on.  Also, you will probably want scripts to set all variables properly.  There is nothing built-in to Scratch that will reset the state of the project to the starting state, so you need to do it yourself.  I hope that helps  smile

[blocks]
<when green flag clicked>
<go to x sad  0 )y sad  0
<point in direction( 90
<switch to costume[ First Costume
<set size to( 100 )%>
<clear graphic effects>
<set{ Number of Lives }to( 3
<set{ Points }to( 0
[/blocks]


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

Offline

 

#4 2009-05-07 13:26:53

pokemon_master12
Scratcher
Registered: 2008-09-26
Posts: 100+

Re: Restart project from the beginning?

Add this block to your project:

[blocks]<when green flag clicked>[/blocks]

and then add "switch to background" underneath, or set a broadcast message that will send every time the green flag is pressed, such as "start again".  smile


My Dragon Egg! http://dragcave.net/image/5YUA.gif
Visit my blog: http://freyasworld.wordpress.com/

Offline

 

#5 2009-05-08 10:53:49

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Restart project from the beginning?

this is a point a lot of people over look. It is very anoying having to refresh the page when looking at projects as the green flag didn't reset it. As P2S said, you have to initialize all variables and properties

Offline

 

#6 2009-05-08 11:04:39

drakodragon
Scratcher
Registered: 2009-05-08
Posts: 2

Re: Restart project from the beginning?

hi could u tell me how to add friends coz when i do they don't stay regesterd as one?

Last edited by drakodragon (2009-05-08 11:05:01)


hallo!!

Offline

 

#7 2009-05-08 11:41:57

Spine
Scratcher
Registered: 2009-01-15
Posts: 100

Re: Restart project from the beginning?

drakodragon wrote:

hi could u tell me how to add friends coz when i do they don't stay regesterd as one?

This isn't the place for that -_-
Make a new topic and ask that.

Offline

 

Board footer