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

#1 2007-05-24 14:23:08

fendr63
Scratcher
Registered: 2007-05-24
Posts: 3

back to the start

how do I make my movie go back to the beginning when its finished or when I click the stop button when previewing it? At the moment, when you clck start for a second time, the sprites begin their animations from the x,y positions that they stopped in before.

For example, I have a sprite jumping  up and down, if I play the movie, and stop it when the srpite is at the top of its jump. then start the movie again, the sprite begins jumping again  from where it stopped and dissapears off the top of the screen.

thanks

Offline

 

#2 2007-05-24 14:27:40

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: back to the start

I don't think there's any way to do this when the stop is pressed, but to do it when start is pressed you'll need to move each sprite back to its position when the green flag is pressed.

Offline

 

#3 2007-05-24 18:56:58

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: back to the start

weissjd is correct. I recommend setting the x and y postitions right after pressing the green flag.

when green flag is clicked
   set x __ and y ___
   the rest of your code after this....


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#4 2007-05-25 03:48:38

fendr63
Scratcher
Registered: 2007-05-24
Posts: 3

Re: back to the start

Thanks for the advice, it's a real pain to have to reposition everything in the movie everytime, do you think a rewind or reset option should be added to the movie controls?

Offline

 

#5 2007-05-25 07:55:54

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: back to the start

Can we merge this thread with
http://scratch.mit.edu/forums/viewtopic.php?pid=1611

Offline

 

Board footer