this block has been discovered by me with few problems (works best in turbo speed)
<when green flag clicked><set{ variable }to( 0 )<repeat until><( <{ variable }> <>> number )><move( 10 )steps><turn cw( 15degrees><change{ variable }by( 1 )
Offline
We really need a block for that! For now though, we can always do this:
For the action:
<when I receive[ turn
<repeat until><( <{ timer }> <=> 10 )>
<move( 10 )steps>
<turn cw( 15 )degrees>
<end>
And for the timer:
<when I receive[ turn
<repeat( 10
<change{ timer }by( 1
<wait( 1 )secs>
<end>
Offline
Or, we can use the built-in timer
[blocks]
<when I receive[ turn
<set{ Now }to( <timer>
<repeat until><( <timer> <>> (( <{ Now }> <+> 10 )) )
<move( 10 )steps>
<turn cw( 15 )degrees>
<end>
[/blocks]
Offline