Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8928

Invalid Expression for time display in min:sec:millisec

$
0
0

Hi! Can't seem to work out what's wrong with the following expression. Even when simply instructing an actor to display text with the formatted time, it doesn't work. However, at one point it did briefly work, but then I had to modify something and when re-entering the expression, it stopped working. Any other settings should I be aware?

MIN:SEC:MILLISECS time display ...

floor(floor((game.time%3600)/6­0)/10)..floor((floor(game.time­%3600)/60)%10)..":"..floor((ga­me.time%60)/10)..floor(game.ti­me%10)..":"..(floor(game.time*­10)%10)..floor(floor(game.time­*100)%10)

Thought I'd add that replacing it with the following min:sec expression does work, so I assume issue is with above expression:
floor(floor((( game.endTime )%3600)/60)/10)..floor((floor(( game.endTime )%3600)/60)%10)..":"..floor((( game.endTime )%60)/10)..floor(( game.endTime )%10)


Viewing all articles
Browse latest Browse all 8928

Trending Articles