I think it would make scripting allot simpler if we had a "when I receive" like
< broadcast [???] received?>only that can fit inside
wait until [] <if []>and
<repeat until[]>Blocks. It would allow us to do much more and it would shorten the amount of scripts we need. For example:
when gf clicked wait until < broadcast [go] received?> <repeat until<Broadcast [game over] received?>> <if <key[space]pressed?>> move [10] steps <end> <end>I think this is where I am supposed to put this.
Last edited by Yoshiboy (2012-02-03 07:42:00)
Offline
Yes, it's been suggested many times before. And it would actually be <[broadcast v] received?>.
Offline
The 'repeat until' and 'wait until' blocks would be useful though.
Offline
mattlai2 wrote:
Yoshiboy wrote:
Why not?
mattlai2 wrote:
I think that it shouldn't fit inside the "if" block...
Broadcast is an action, and it will only last for, like, 0.1 s.
Actually, it lasts much less time than that, but it could be changed for this to work.
Offline
scimonster wrote:
mattlai2 wrote:
Yoshiboy wrote:
Why not?
Broadcast is an action, and it will only last for, like, 0.1 s.
Actually, it lasts much less time than that, but it could be changed for this to work.
Actually, the timing isn't affective, when the IF spots it was true for any amount of time, it runs all of the block stack inside once, even if it became false while it was running.
Offline
rdococ wrote:
scimonster wrote:
mattlai2 wrote:
Broadcast is an action, and it will only last for, like, 0.1 s.Actually, it lasts much less time than that, but it could be changed for this to work.
Actually, the timing isn't affective, when the IF spots it was true for any amount of time, it runs all of the block stack inside once, even if it became false while it was running.
But it would be false when it was checking 99/100 times.
Offline
mattlai2 wrote:
Yoshiboy wrote:
Why not?
mattlai2 wrote:
I think that it shouldn't fit inside the "if" block...
Broadcast is an action, and it will only last for, like, 0.1 s.
When its broadcast and wait, it wont!
Offline