So I'm trying to add a score to my game but the way I want it is to have It start at 00000000, but then when points are earned it goes to 00000100. Instead all I can seem to do is turn my score into 100 and it gets rid of all my other 0's
Develop games in your browser. Powerful, performant & highly capable.
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".
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".
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". >
> 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".
>
Perfect thanks for the help