Score Sprite Display issues.

0 favourites
  • 1 posts
From the Asset Store
Make a displayed number gradually increase or decrease, making an impression of a real-time counting.
  • I'm using custom 0-9 sprites to display my score currently.

    I have a global variable for my main collectible item, and for the most part it works correctly.

    When the player collides with the item, it adds 1 to the global variable, but only as long as there is only 2 display sprites on the screen. As long as there is only 2 display sprites on the screen, it will add 1 each time with no issues.

    However, the moment I add a 3rd display sprite (as I want the player to be able to earn up to 300) 1 now adds 100, instead of just 1.

    The value for the display sprite currently is:

    int(mid(str(zeropad(MarbleScore, ScoreSpriteMarbles.count)), loopindex, 1))

    Can anyone help me get this figured out?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)