Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Score resetting problem

Author
Message
Juxton
9
Years of Service
User Offline
Joined: 21st Jan 2015
Location:
Posted: 25th May 2015 23:50 Edited at: 26th May 2015 03:10
Okay, with the help of the great people here, and the wonderful Smack It tutorial videos by Daniel Foreman, I got my game running with no bugs (as far as the Debug program can find, at least).

However, when I restart the game, it will set the score back to 0, but it still displays the previous score until I score a new point, then it will revert to 1. I can't seem to pinpoint the issue.

Another issue I'm having is at the end of the first game, it displays the Highscore as 0 no matter how many points I have, but at the end of the next game, it will show the current high score. So it's gathering the info, but not displaying it until the next play through.

UPDATE: I fixed the highscore problem. I was telling the endgame section to write the new highscore, but I didn't tell it to read it.

Because of the nature of my coding, I can't just post the pertinent code, so I'll post the whole code. I know it's still a little messy, but nothing like what it was before. It's my first game. Some of the code I don't use currently, but will later on.

Any help would be greatly appreciated!

[b][u]
budokaiman
FPSC Tool Maker
14
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 26th May 2015 00:34
You aren't resetting your text when you restart. In activate game add:


"Giraffe is soft, Gorilla is hard." - Phaelax
Juxton
9
Years of Service
User Offline
Joined: 21st Jan 2015
Location:
Posted: 26th May 2015 02:20
That did it! Thanks so much!

Login to post a reply

Server time is: 2024-04-26 21:39:51
Your offset time is: 2024-04-26 21:39:51