Is there a way to add a timer in milliseconds in gamesalad?
mypingo7
Member Posts: 22
So when the round starts I want a timer to pop up in the top right corner to show how much time has passed since the round began. But I don't want it to show show in seconds because thats too plain. I want the time to be shown in milliseconds too.
EX: (15.546)
If not while the round is going, at least when the player finishes i want the time to pop up on the "Complete Level" scene that i have so it shows the time after the round.
Any help would be awesome. Thanks!
Comments
You'll want to make your own timer. Google custom timer gamesalad and you'll see many examples and videos. You can round the time to milliseconds attribute by using roundTo(game.attribute,3).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
ok i did that but do you know how to stop the timer once the level finished so i can display it.
EX: Congrats you completed the level in whatever time he/she finished in
same conditions as in the other thread to stop your player moving. eg. have an integer attribute called levelState and assign values for before starting, game on, level fail, level finish. set the rule to count down only if levelState = whatever value you assign to game on. also constrain the minimum value of the timer to 0 (there a gshelper video on youtube to show you how to do this).
I do. That's why I suggested specific terms for a Google search that will provide the answer.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Can you link me a vid cause i cant find one
searching youtube for gamesalad countdown timer
wrap that in the same rules that allow your player to move.