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

#1 2009-01-09 15:50:20

terry-iow
Scratcher
Registered: 2008-11-12
Posts: 2

How do you restart a game within the game

Can I start a program with (when green flag clicked) and then
                                     (broadcast "start")

                                     (When I receive "start")
                                        .....
                                        .....
And when a  Routine   ends

                                  (broadcast "start")

Not elegant but I can't  think of a way to do it across many sprites.

Thanks
              Terry

Offline

 

#2 2009-01-09 19:14:23

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: How do you restart a game within the game

You can restart the game during the game by using that broadcast, but I don't know of any other ways besides variables (and that's not the best way).


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2009-01-09 19:29:05

Nick60
Scratcher
Registered: 2007-06-17
Posts: 100+

Re: How do you restart a game within the game

Make everything have a foundation.  Instead of the green flag being started, you will perhaps do this to one sprite only.

WHEN GREEN FLAG CLICKED
  broadcast START

And then have every other thing start when they receive 'Start'.


Let's  Be Blue!

Offline

 

#4 2009-01-10 12:54:28

terry-iow
Scratcher
Registered: 2008-11-12
Posts: 2

Re: How do you restart a game within the game

Thanks for your help

        Cheers
                    Terry

Offline

 

Board footer