Code: Select all
on ActivateTimer
HideStart
if field "timer" > 0
then
subtract 1 from field "timer"
send ActivateTimer to me in 1 sec
put the result into _pendingMessage
---half game changes---
else if field "timer" = 10 then
show button "doublePoints"
---last minute changes---
else if field "timer" = 5 then
show button "bonus1000"
else
#StopMoveMe
aeStopMoving "all"
#hide button "Stop" with visual effect zoom out very fast
show button "Restart" with visual effect dissolve very fast
show widget "Info"
show widget "Home"
show button "Settings"
GameOver
DisableObjects
HighScore
HideBounuses
end if
end ActivateTimer
so i tried to change it from if to while like this:
Code: Select all
on ActivateTimer
HideStart
#if field "timer" > 0
#then
repeat while field "timer" > 0
subtract 1 from field "timer"
send ActivateTimer to me in 1 sec
put the result into _pendingMessage
end repeat
---half game changes. pls correct the half number if necessary---
if field "timer" = 10 then
show button "doublePoints"
---last minute changes---
else if field "timer" = 5 then
show button "bonus1000"
else
#StopMoveMe
aeStopMoving "all"
#hide button "Stop" with visual effect zoom out very fast
show button "Restart" with visual effect dissolve very fast
show widget "Info"
show widget "Home"
show button "Settings"
GameOver
DisableObjects
HighScore
HideBounuses
end if
end ActivateTimer
Thanks!