Hello!
Can you use a Wait Block and a Broadcastblock like this?:
[blocks] <when I receive[test]>
<wait(2)secsc>
<broadcast[another test]>
Such a code doesn't work for me.
Does anyone know how to use a Wait Block with a "When I receive"-Block?
Offline
Hello!
Can you use a Wait Block and a Broadcastblock like this?:
[block]
<when I receive[ something
<wait(2)>
<broadcast[ something
[/block]
Such a code doesn't work for me.
Does anyone know how to use a Wait Block with a "When I receive"-Block?
Sry for dobblepost! I didn't found an Edit Button
Offline
Sorry, New Scratchers cannot edit their posts.
What you did should work, and induce recursion.
Offline
hmm it didnt work, i didnt know why, but i found a solution.
I replaced the
<when I recive>
with an
<wait until [something=1]>
Instead of using the broadcast command I set the variable 'something* = 1.
I think it was a logical problem in my whole program.
Offline
Perhaps whatever broadcasted "test" was doing so repeatedly, causing the script to start over before the 2 seconds were up and therefore never broadcasting "another test".
Offline