Is there a way to add a timer in milliseconds in gamesalad?

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,927

    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

  • mypingo7mypingo7 Member Posts: 22

    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

  • bob loblawbob loblaw Member, PRO Posts: 548

    @mypingo7 said:
    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).

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,927

    @mypingo7 said:
    ok i did that but do you know how to stop the timer once the level finished so i can display it.

    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

  • mypingo7mypingo7 Member Posts: 22

    Can you link me a vid cause i cant find one

  • bob loblawbob loblaw Member, PRO Posts: 548

    searching youtube for gamesalad countdown timer

    wrap that in the same rules that allow your player to move.

Sign In or Register to comment.