I think this would be a good block:
<within () seconds <>> //the thing after "seconds" looks wrongThis would be a green block, and it would give the amount of seconds to continue on, so heres what I mean:
when gf clicked Move (10) steps //just for show If <within (7) seconds <touching [sprite 2 v]?>> Say [hi] for (2) seconds End Say [the end]All the random scripts are not needed and are just for show. What it would do is if within the next 7 seconds the sprite touches sprite 2, it would do the script. This could be very helpful.
Wait until <within (5) seconds <touching [sprite 2 v]?>>It makes no sense, right? This would appear red if this script would be performed. Also,
Forever ifWould not work, but this block could still be useful.
Last edited by turkey3 (2012-04-27 22:49:33)
Offline
How is the program supposed to predict the future?
Edit: Oh, nevermind. I was thinking it would be better if there was a block like this
<[] seconds passed>Except a boolean so it could be like this
repeat until <<[5] seconds passed>or<touching [sprite 2 v]?>> do stuff end
Last edited by TorbyFork234 (2012-04-27 22:47:24)
Offline
TorbyFork234 wrote:
How is the program supposed to predict the future?
I think It's meant as if touching within 10 seconds after it's called.
workaround time!
when gf clicked broadcast [start timer v] repeat until <(time) = (seconds wanted)> if <touching [sprite1 v]?> do stuff end end When I receive [start timer v] wait (seconds wanted) secs set [time v] to (seconds wanted)
Offline
TorbyFork234 wrote:
How is the program supposed to predict the future?
It waits that number of seconds or until the condition is true. If the condition is still false after the specified time, it returns false.
This block will also be the only possible way to have a
<[thisisabroadcast v] received >block, as it can only work in
wait until<> repeat until <> only 1 block inside - no more end forever if <> only 1 block insideand the
<<> and <>> <<> or <>> <not <>>blocks inside the above blocks, and when the broadcast is constant (when it is being repeated) . But with this new block, the received block will work properly !
Last edited by joefarebrother (2012-04-28 02:00:57)
Offline
Doesn't anyone see my edit?
Offline