Start button issue
kajuto
Member Posts: 314
hi there! i have a timer, and the code i used is this:
Display Text
-floor((floor(game.mytimer%3600)/60%10))..":"..floor((game.mytimer%60)/10)..floor(game.mytimer%10)
Change Att
-game.startime to game.time
Rule
-att game.mytime >0
-constrain att
-game.mytimer to 120-(game.time-game.starttime)
Rule
-att game.mytime =0
- Timer
-after 2 seconds run to completion
- pause game
how can i set the timer to start , when i touch the start button to start to play?????
Display Text
-floor((floor(game.mytimer%3600)/60%10))..":"..floor((game.mytimer%60)/10)..floor(game.mytimer%10)
Change Att
-game.startime to game.time
Rule
-att game.mytime >0
-constrain att
-game.mytimer to 120-(game.time-game.starttime)
Rule
-att game.mytime =0
- Timer
-after 2 seconds run to completion
- pause game
how can i set the timer to start , when i touch the start button to start to play?????
Comments
In your start button have when touch is pressed, change attribute startCountdown to true
then have your rules for the timer in a rule when attribute startCountdown is true
cheers
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS