Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post Posted: March 16th, 2015, 9:10 pm 
 

Joined: December 7th, 2014, 9:45 pm
Posts: 37
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.


Top 
 Profile  
Reply with quote  
 Post Posted: March 16th, 2015, 9:50 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2962
Location: Oklahoma, United States
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.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron