I'm currently developing my first game with Construct 2, and I'm facing an issue. Well, not really an issue, but I understand I probably made a mistake while building my highscore feature.
So, in my game, there is a Global variable: ScorePoints = 0.
On my HUD, this is simple text that shows current player score.
Player can earn points by collecting items, and killing ennemies.
Player can loose points by being hurt, and dying.
Each time these events happen, it add or remove points to my ScorePoints global variables.
Everything was fine until I realized there was something wrong:
[quote:3gfvu26v]At the beginning of the game, player score is 0. So, if he is being hurt, or die, at this time, he will lose points and its score is going to be a negative value.
This might looks stupid, but I absolutely forgot this case... Now, I am wondering how should I build my player score to avoid this. Is this possible to avoid negative variable? I'm probably missing something.