I am trying to recreate that typical score board you see in a lot of arcade games. Specifically where the score starts at and displays, 000,000,000. Then as the player gets more points lets say 12500. The new score would be displayed like this, 000,012,500.
Any know how to implement this? Thank You.
Develop games in your browser. Powerful, performant & highly capable.
From the manual
Pad number out to a certain number of digits by adding zeroes in front of the number, then returning the result as a string. For example, zeropad(45, 5) returns the string "00045".
zeropad(score,5) would show the variable score with 5 0's infront
Works great! Thanks!