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.

DarkBASIC Discussion / making a load/save feature

Author
Message
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 9th Jul 2004 07:42
Hi,
once again i have a question.I would like to know if anybody would be eble to make a load/save feature and incorporate it into this code.(pleas dont take the code.)and sorry if its not very explanatory.plus for the music commands put your own cd in place of those.


Current Project:Quest for the Five Staffs of Draconia
zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 9th Jul 2004 08:18
I carnt really do it for you (well, i could, but i dont know exactly what you want to save). but heres a basic explanation of how to do it

If you store the variables you wish to save in an array, then use the save array command, those variables will be saved.
you then load the array when you wish to load and assign the values in the array to the respective variable.

www.zaneinteractive.uni.cc - my brand new site, check it out - NOW!!!!!
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 9th Jul 2004 08:36
ok this is what i wanted to do.i would like to save the part of the game that your at in a special file name and when you click the load button on the first menu it brings up the same exact spot you were at when you saved.
bye,
Ian
P.S.Thanks for the help.

urrent Project:Quest for the Five Staffs of Draconia
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 9th Jul 2004 12:32
Simply do what zane suggested.

Get all your variables, such as health, position, weapons, whatever applys to your game, and stick it all in an array, then simply use the Save Array command, and when you want to load it, use the Load Array command. Simple.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 10th Jul 2004 01:59
well thanks to you both.I will have to try that when i get home.and thanks again.
bye,
Ian

urrent Project:Quest for the Five Staffs of Draconia

Login to post a reply

Server time is: 2025-05-25 03:49:26
Your offset time is: 2025-05-25 03:49:26