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

#1 2011-04-24 21:21:50

rukichan
Scratcher
Registered: 2010-12-29
Posts: 29

if else?

like right i now i have it so these yellow balls fly at the sprite and if it touches one of them, it broadcasts and changes the background to game over. How do i get it so that if it gets thru the whole thing, it broadcasts something that says good job or whatever?


When life gives you lemons, squirt them in your enemy's eyes!
I'm not random, you just can't think as fast as me.

Offline

 

#2 2011-04-24 21:23:29

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: if else?

Make a sprite that has a script that says when I receive whatever then show.

Offline

 

#3 2011-04-24 21:27:05

rukichan
Scratcher
Registered: 2010-12-29
Posts: 29

Re: if else?

this is my script right now...

[blocks]
<forever>
<if><touching[ sprite 9 ]> or <touching[ sprite 10 ]>
<broadcast[ game over]>
[/blocks]


When life gives you lemons, squirt them in your enemy's eyes!
I'm not random, you just can't think as fast as me.

Offline

 

Board footer