is there a way to say something like: when the green flag is clicked, do something, until i receive _________'?
Offline
All I can think of is to go like this:
when gf clicked <forever> <play sound[meow]> <end>and then:
<when I recieve[stop!]> <Stop all>
Offline
There is currently no 'until I recieve [something v]' block.
You can do it with variables though.
when gf clicked set [state v] to (0) repeat until <(state) = (1)> scripts here end when I receive [something v] set [state v] to ( (1) - (state) )^ That will toggle the variable 'state' between 1 and 0.
when I receive [something v] set [state v] to (1)
Last edited by ProgramCAT (2012-03-16 18:19:40)
Offline
Thanks This worked really well
Offline
TheAmaterasu wrote:
All I can think of is to go like this:
when gf clicked <forever> <play sound[meow]> <end>and then:<when I recieve[stop!]> <Stop all>
But what if he doesn't want everything to stop.
Last edited by turkey3 (2012-03-18 20:31:06)
Offline