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

#1 2010-03-15 20:51:48

mscomputerfair
Scratcher
Registered: 2009-05-20
Posts: 1

How to end the game.

How do i make it so that if you run into one sprite it ends the game?

Offline

 

#2 2010-03-15 20:56:11

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: How to end the game.

Try this:

forever
   if touching sprite1
      stop all
   endif
endforever


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2010-03-15 21:00:05

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: How to end the game.

Or if you don't want to click the flag to restart the game, you could broadcast something called 'Game Over' instead of stopping everything.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

Board footer