Score Sprite Display issues.

Get help using Construct 2

Post » Sun Apr 07, 2013 10:03 pm

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?
Posts: 78
Reputation: 606

Return to How do I....?

Who is online

Users browsing this forum: Artcadev, R0J0hound, volumetv and 17 guests