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 / Save Games?

Author
Message
Flamertor
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 25th Feb 2012 09:45
Im making a game which you place building and gathering items but i don't know how to save, could someone please help me. There about 1500 items you can place.

Go to my website http://imthegamerunner.moonfruit.com
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 27th Feb 2012 17:45
Well, the basic idea is you keep track of your objects in variables and/or arrays. You store the values of the variables in a file, and then when necessary, you read back those stored values into the variables.

TDK's tutorials go into detail about the basic process of this. Check out

Part IV - File Access

Part V - Choosing The Correct Variables

If there's something you don't understand, ask.

Enjoy your day.
Flamertor
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 27th Feb 2012 18:26
thxs i think i understand i'll tell you by the end of the week if i don't, and if i got time, got given alot of hwk and got a chemistry test on thursday.

Go to my website http://imthegamerunner.moonfruit.com

Login to post a reply

Server time is: 2024-04-20 01:40:30
Your offset time is: 2024-04-20 01:40:30