How do I set my score to 00000000 rather than 0

dwibredwibre Member Posts: 192
edited April 2012 in Working with GS (Mac)
How do I set my running score attribute to start from 00000000 rather than 0.

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer

    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 forth

    image MH

Answers

Sign In or Register to comment.