[Solved] Highscore stops updating when when the score it's pulling from is changing too quickly.

owen_dennisowen_dennis Just a guy, you know.Member, PRO Posts: 236
edited February 2015 in Working with GS (Mac)

I've got this game all set up so that if you kill an enemy he dies and you get 10 points. So he has a rule in him that when he dies game.score +10. Some of the enemies randomly leave coins behind when they die as a bonus, each coin being worth an extra one point or something.

I have a high score system set up so that it will start updating itself constantly once the score for the current round you're playing is greater than the previous high score. It was all working fine every time until I added in the coins.

They're using the same game.score + 1 that the enemies are, but as soon as I start grabbing a whole bunch of coins at once, like 3 or 4, the score still updates, but the high score lags behind and seems to have somehow forgotten that it's constrained to the score. It then continues to update, but it seems to have never counted a bunch of the points I just made, so it'll end up being many points behind what the score currently is.

I turn off the coins being worth points and it's back to working again, so I can't help but think there's some sort of lag issue. I haven't built an adhoc for this yet, so could it potentially just be a quirk in the viewer?

Comments

Sign In or Register to comment.