this block will be useful for when you need to continue a move for a certain time but without any delay in between each repeat, basically instead the block might look like this:
(repeat for (**) secs)
| |
(______________)
the "**" will be where you enter a number or variable
hope you likey the idea
Offline
Hmm, that's an interesting suggestion. I can see myself using something like that.
Offline
That would be handy! If you want, you can do something like that now, like this:
Reset Timer
Repeat Until Timer > SomeNumber
Of course, you only have the one timer so it would be easy to mess yourself up, if you set up more than one of these loops. Maybe a better way is not to reset the timer but to use a variable:
Set StopTIme to (Timer + SomeNumber)
Repeat Until Timer > StopTime
Offline
Paddle2See wrote:
That would be handy! If you want, you can do something like that now, like this:
Reset Timer
Repeat Until Timer > SomeNumber
Of course, you only have the one timer so it would be easy to mess yourself up, if you set up more than one of these loops. Maybe a better way is not to reset the timer but to use a variable:
Set StopTIme to (Timer + SomeNumber)
Repeat Until Timer > StopTime
TY, that is a good idea! normally I was using this:
repeat (**)
[random blocks]
wait (0.1)
or use like (0.05) or such
Offline
I think it would be helpful but its pretty low on the to do list.
Offline
dingdong wrote:
this block will be useful for when you need to continue a move for a certain time but without any delay in between each repeat, basically instead the block might look like this:
(repeat for (**) secs)
| |
(______________)
the "**" will be where you enter a number or variable
hope you likey the idea
sounds pretty good, but i would rather have a when i receive block but as a smaller version like the mouse down? block. that block would be so helpful to me!
Offline
I like this Idea. It would look like this.
[blocks]
<repeat( for ** seconds
[/blocks]
Offline
Would it work?? O.o
(Repeat for ( 4 ) secs)
( | wait 7 secs|
(________________)
O.o
Offline
Yeah thats a good thing you bring up there MRN...
I guess it should do the same as our Timer and/or Variable solutions above, so wait 7 seconds.
But I think that the best solution is the one with the stoptime variable, why wouldn't you use it? I can't think of that many situations where it is really too hard to put in one more block...
Offline
I personally think this block could cause a lot of confusion, especially among kids (for the reasons I described above).
So it'll be better to just use the timer for now.
Offline