I think they should add these
1. a 'while' block-while this = this, do this.
(i will type more later sorry, i am extremely busy :] thanks!)
when gf clicked while <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
Last edited by arinerron (2012-12-04 19:44:11)
Offline
arinerron wrote:
I think they should add these
1. a 'while' block-while this = this, do this.
(i will type more later sorry, i am extremely busy :] thanks!)when gf clicked while <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
workaround:
repeat until <not <condition>> stuff end
Offline
SJRCS_011 wrote:
workaround:
repeat until <not <condition>> stuff end
Yes. The workaround is simple enough to eliminate the necessity for such a block.
Offline
a 'play sound [sound] while' block-plays the sound while doing the scripts!
play sound [sound v] while //the C block stuff end
Offline
``
sakafitrady wrote:
a 'play sound [sound] while' block-plays the sound while doing the scripts!
play sound [sound v] while //the C block stuff end
when gf clicked set [sndplaying v] to [0]
play sound [sound v] set [sndplaying v] to [1] reset timer broadcast [sndplgo v] stuff stop all sounds set [sndplaying v] to [0]
when i receive [sndplgo v] forever if <(sndplaying) = [1]> if <(timer) > [0]> // Length of sound in seconds; use a floating point value play sound [sound v] reset timer end else stop script end endThat works too.
Offline
@Grav, that works only if that is the only sound playing. I believe the solution would be the ability to stop individual sounds, or a sprite's sounds.
Offline
arinerron wrote:
I think they should add these
1. a 'while' block-while this = this, do this.
(i will type more later sorry, i am extremely busy :] thanks!)when gf clicked while <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
The "while" block is rather unnecessary. Instead of
while <mouse down?>you can use
repeat until <not <mouse down?>>.
Offline
Wait, sorry read the date wrong. Sorry mods. All my fault. Ugh. Now I feel bad.
Last edited by ImagineIt (2012-12-09 14:35:15)
Offline