Wait ( ) seconds or until < >
any other way to do this block WITHOUT using variable/timer/broadcasting?!?!?
thx. dibbo.
Offline
Dibbo222 wrote:
Wait ( ) seconds or until < >
any other way to do this block WITHOUT using variable/timer/broadcasting?!?!?
thx. dibbo.
No, there isn't. Anyway, what's wrong with variables, timer, or broadcasting?
Offline
timer: it cud get mixed up with other sprites that are 'resetting the timer' aswell.
broadcasting: not much wrong but it'd be better keeping it in one script so u dnt get confused when changing scripts...
variable: best option but a block for it wud be MUCH easier.
Offline
repeat 30{
wait.1 sec
if key pressed{
stop script}
}
Offline
wait ( A ) secs or until < B >
1. Make Variable [ C ]
Scripts:
*** Thanks to BYOB for the Boolean graphic
Last edited by bhz (2009-05-09 19:15:33)
Offline
archmage wrote:
repeat 30{
wait.1 sec
if key pressed{
stop script}
}
yes but i want to continue the script after either 3 seconds or touching something. hmmm how about:
<repeat( 30 )>
<if> touching player )>
<wait( 0 )secs>
<else>
<wait( 0.1 )secs>
<end>
<end>
the above wud wait 3 seconds but as soon as the sprite is touching player, it will wait 0 seconds until the repeat loop is over.. only problem is that if the sprite only touches the player for a very small ammount of time - which is unlikely in my game anyway
Offline
Honestly, you could just use a list for all the timers. Or just subtract the time it began from when it stopped. For example:
[wait until < < ( (timerStart) - (timer) ) = 3 > or < key [space] pressed > ]
Offline
Dibbo222 wrote:
Wait ( ) seconds or until < >
any other way to do this block WITHOUT using variable/timer/broadcasting?!?!?
thx. dibbo.
I agree. It would be nice to have a block like <key[ this ]pressed?> that said
<wait( )secs> I think it's a good idea.
Last edited by Oneandonly (2009-05-21 20:45:24)
Offline
wait ( ) seconds? we've got that already haven't we?
Last edited by Stickman704 (2009-06-02 13:47:21)
Offline
Stickman704 wrote:
wait ( ) seconds? we've got that already haven't we?
"Wait ( ) seconds or until < >"
Offline