playMaker

Author Topic: PlayMaker time formatter  (Read 1070 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
PlayMaker time formatter
« on: October 20, 2021, 05:26:18 AM »
This isn't really an action, but a state to format PlayMaker time.

I made this for my racing game GALACTIC MARATHON, and thought it could be useful for somebody out there as well.
To be clear, this converts the SECONDS format of PlayMaker time, to a string M:s:f.

I didn't want to waste time in thinking how to make it add 0 in front of the single digits (without the chance to add an IF statement to the State...), and it looks good without it in my game, so there's that.
You can still give your user a decent chronometric time string.

And in case you are curious, here is the game: https://hutonggames.com/playmakerforum/index.php?topic=24347.0
« Last Edit: October 20, 2021, 05:36:24 AM by PolyMad »