Page 1 of 1

The score in my game doesn't display as I expected

Posted: March 16th, 2015, 9:10 pm
by hightech
Hello all ! Well, I included a timer and a score in my game ( they are both displayed ) but when I start the game the score is already 1 and when I press the PLAY button in my game the score becomes 2 - I want it to be 0 until I collect a circle( like the poo game ). The problem might be in the ResetGoal func - http://pastebin.com/rSeSsEQG . This is how I drew the score - http://pastebin.com/ebK5F41y .
Unfortunately the project is 72 MB and I cannot upload it.

Re: The score in my game doesn't display as I expected

Posted: March 16th, 2015, 9:50 pm
by albinopapa
already gave you the answer in PM. In the Game constructor you call ResetGoal, which increments nGoal, and in StartGame you call ResetGame which calls ResetGoal which increments nGoal.