Maybe make something like this?
<when green flag clicked>
<forever if>recieve blocks
<switch to costume[
<end>
I mean, when you do <when I receive[ make it so you can put it in the middle of a script.
IE.
<when green flag clicked>
<wait until> received broadcast <the broadcast's name>
Do something.
Last edited by fg123 (2008-12-26 19:32:04)
Offline
1. Make a variable and
<set{ variable }to( 0 [/blocks]
at the start of the game.
2.
<when I receive[ broadcast
<set{ variable }to( 1 [/blocks]
3. The boolean is thus this:
<( <{ variable }> <=> 1 )>[/blocks]
Offline
To cont on bhz.[blocks]
<when green flag clicked>
<forever>
<if><key[ UP ]pressed?>
<set{ broadcast }to(1 )>
<end>
<end>
<when green flag clicked>
<forever>
<wait until><( <{ broadcast }> <=> 1 )>
<set{ broadcast }to(0)
SCRIPT
<end>[/blocks]
get use to working with variables instead of broadcasts if you wish to move on to more advance languages.
Last edited by yambanshee (2008-12-27 03:59:08)
Offline
wait until i receive _____ wouldn't be necessary because you could just put when i receive
Offline