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.

Newcomers DBPro Corner / i need a tutorial on how to save things

Author
Message
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 15th Oct 2006 21:45
ok i have a snake game and was wondering how to make a high scores how could i save the score to the high scores and when i exit out and come back the high score will still be there


Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Oct 2006 23:39
For a high score list the easiest way is to use "save array" and "load array".

This will load the old score list, print it out, make a new score, add it to the list (if it's high enough), and save the scores to "Scores.dat".



If you have any questions about the code i'll be happy to answer them.
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 15th Oct 2006 23:50
tyvm i didnt think it was gona be that simple


Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 16th Oct 2006 12:12
Np. That's why I love those commands.

Login to post a reply

Server time is: 2024-09-25 11:27:06
Your offset time is: 2024-09-25 11:27:06