I want to put a score counter on the screen with pre-displayed digits. For example, if the player has 100 points, I want it to show '0000100' or something like that. Is there any way to make a score variable's contents display that way?
From the manual:
https://www.scirra.com/manual/126/system-expressions
zeropad(number, digits)
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".
Develop games in your browser. Powerful, performant & highly capable.
Thanks, that worked perfectly. Read most of the manual but that was one entry I skipped. Going to study it now.