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 / How to make high score save

Author
Message
Sandmanmmm
6
Years of Service
User Offline
Joined: 11th Feb 2018
Location:
Posted: 11th Feb 2018 17:52
When you shutdown my game the highscore which is displayed in the top right corner resets itself. How could I possibly make it save?

fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 12th Feb 2018 03:03
you need to save a text file once you have finished playing your game. This could be when you return to your menu screen and hit exit
or after you have completed a game died etc.



rem using the following functions just require high=loadHigh() to be placed somewhere in your initial setup code you may find making it global might help
rem save the highscore at the end of each game or when you exit the game properly after it has returned to your menu and you exit

GOODLUCK
fubar
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th Feb 2018 09:54
try also .load .save direct from array.
https://www.appgamekit.com/documentation/guides/12_array_changes.htm
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : AMD (17.12.1) Radeon R7 265 : Mac mini OS High Sierra (10.13)
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Feb 2018 03:04
There's an online option as well.
https://purpletoken.com
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 13th Feb 2018 07:49
GM Scoreboard is also an online option:

http://gmscoreboard.com/index.php


PSY LABS Games
Coders don't die, they just gosub without return

Login to post a reply

Server time is: 2024-04-19 20:58:29
Your offset time is: 2024-04-19 20:58:29