forever if <touching [lose sprite]> broadcast [lose] if <touching [win sprite]> broadcast [win]
Oh, and this belongs in All About Scratch.
Last edited by scimonster (2011-05-02 11:17:01)
Offline
scimonster wrote:
Code:
forever if <touching [lose sprite]> broadcast [lose] if <touching [win sprite]> broadcast [win]Oh, and this belongs in All About Scratch.
+1
Offline
There are a number of ways to do what you are asking...Broadcast messages, as scimonster demonstrated, are one way to go. Another approach is just to change a costume or have a sprite Say something when another sprite touches it. Something like this
When Green Flag Clicked
Wait Until <touching player sprite>
Say "You Lose" for 2 seconds
Stop all scripts
Offline
kimmy123 wrote:
markyparky56 wrote:
scimonster wrote:
Code:
forever if <touching [lose sprite]> broadcast [lose] if <touching [win sprite]> broadcast [win]Oh, and this belongs in All About Scratch.
+1
What was it in?
Advanced topics.
Offline
<when green flag clicked>
<forever>
<if><touching[ (What Ever You Touch To Lose) ]
<broadcast[ Lose Game ]
<if><touching[ (What Ever You Touch To Win) ]
<broadcast[ Win Game ]
There You Go! Good Luck On The Project! :p
Offline