How do I set my score to 00000000 rather than 0
How do I set my running score attribute to start from 00000000 rather than 0.
Best Answer
-
MotherHoose Posts: 2,456
use the function: padInt
displayText … Text: [expression] padInt(game.score,6)
… 6 is the number of zeros before the score
when game.score ≥ 10
padInt(game.score,5)
when game.score ≥ 100
padInt(game.score,4)
and, so on and so forthMH
Answers