OK, so it would look like this:
<<> for (1) secs>So, you could do this:
if <<touching [sprite1 v]?> for (1) secs?> say [I got you!] for (2) secs endOr:
if <<touching color [#ff0000]?> for (1) secs?> play sound [burn v] until done end
Offline
Offline
berberberber wrote:
No, but yours has a delay. Mine simply checks.
what do you mean by delay? if the conditions are met by the end of the second, the scripts are initiated just like your block
Last edited by 777w (2012-06-15 15:11:07)
Offline
Mine has to be true the whole time. Yours could be true false true and still work.
Offline
berberberber wrote:
Mine has to be true the whole time. Yours could be true false true and still work.
hmm
Offline
This would be good. But I have a workaround that doesn't let you have true false true.
Offline
This is an interesting idea, but it would be hard to program.
Also, what if the time passed while it was still executing the blocks? Would it stop right there or finish the loop?
Offline
MathWizz wrote:
set [condition v] to [1] repeat until <<(timer) > [1]> or <(condition) = [0]>> set [condition v] to <<(condition) = [1]> and <touching [sprite v]?>> end
you need a reset timer block.
Offline