how can i get a 60 second timer and make it do somthing... like change the background ( im a bit of a noob so i need somthing realy simple or an image of some kind)
Offline
set [timer v] to [60]That is all I have so far.
Offline
joletole wrote:
set [timer v] to [60]That is all I have so far.
Do you need:
repeat until <(time) < [1]> //I put time instead of timer because of the timer block in sensing wait (1) secs change [timer v] by [-1] end do stuff?
Offline
when gf clicked reset timer wait until < < (timer) = 60 > or < (timer)>60 > > switch to background [Background v]Gah I can never remember how to do an "or" in the forum blocks >:|
Last edited by RedRocker227 (2012-03-12 12:36:19)
Offline
RedRocker227 wrote:
when gf clicked reset timer wait until <(timer)=[60]> switch to background [Background v]Gah I can never remember how to do an "or" in the forum blocks >:|
You forgot the brackets in the =/>.
I think the script I put would work too.
Last edited by scimonster (2012-03-12 13:22:12)
Offline
scimonster wrote:
RedRocker227 wrote:
when gf clicked reset timer wait until <(timer)=[60]> switch to background [Background v]Gah I can never remember how to do an "or" in the forum blocks >:|You forgot the brackets in the =/>.
I think the script I put would work too.
Either work
Offline
when gf clicked reset timer forever if <<<timer> mod (60)> = (0) next background end endEDIT: What happened above? ^^^
when gf clicked reset timer forever if <<<timer> mod (60)> = (0)> next background end end
Last edited by MaxFlyboy (2012-03-12 20:47:27)
Offline
MaxFlyboy wrote:
when gf clicked reset timer forever if <<<timer> mod (60)> = (0)> next background end endEDIT: What happened above? ^^^when gf clicked reset timer forever if <<<timer> mod (60)> = (0)> next background end end
You missed out the > at the end.
Offline
Or
when gf clicked wait (60) secs do something
Last edited by Hardmath123 (2012-03-13 09:33:14)
Offline
I suggest:
when gf clicked reset timer if <<(timer) mod (60)> = (0)> broadcast [time up!]and on backgrounds:
when I recieve [time up!] next backgroundThis way, other things canhappen at the same time
Last edited by johnrulz (2012-03-13 11:32:16)
Offline
johnrulz wrote:
I suggest:
when gf clicked reset timer if (((timer) mod [60]) = [0]) broadcast [time up!]and on backgrounds:when I receive [time up! v] next backgroundThis way, other things canhappen at the same time
Fixed. "I before E except after C"
Offline
scimonster wrote:
RedRocker227 wrote:
when gf clicked reset timer wait until <(timer)=[60]> switch to background [Background v]Gah I can never remember how to do an "or" in the forum blocks >:|You forgot the brackets in the =/>.
I think the script I put would work too.
Actually, your method wouldn't work 100% of the time; the timer changes so fast that it would only equal 60 exactly for like, 0.001 seconds.
And by "or" I actually meant ">". I was just not concentrating, so I put the wrong word XD
Offline
RedRocker227 wrote:
scimonster wrote:
RedRocker227 wrote:
when gf clicked reset timer wait until <(timer)=[60]> switch to background [Background v]Gah I can never remember how to do an "or" in the forum blocks >:|You forgot the brackets in the =/>.
I think the script I put would work too.Actually, your method wouldn't work 100% of the time; the timer changes so fast that it would only equal 60 exactly for like, 0.001 seconds.
And by "or" I actually meant ">". I was just not concentrating, so I put the wrong word XD
Oh, lol.
And it would stay that way for 0.1 seconds, which is, unless there are hundreds of scripts running, enough time for the check.
Offline
scimonster wrote:
RedRocker227 wrote:
scimonster wrote:
You forgot the brackets in the =/>.
I think the script I put would work too.Actually, your method wouldn't work 100% of the time; the timer changes so fast that it would only equal 60 exactly for like, 0.001 seconds.
And by "or" I actually meant ">". I was just not concentrating, so I put the wrong word XDOh, lol.
And it would stay that way for 0.1 seconds, which is, unless there are hundreds of scripts running, enough time for the check.
Ah okay.
Offline