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 Professional Discussion / Save points - is this possible?

Author
Message
Andrew
22
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 26th Aug 2003 13:41
Can my game have a save point in it, like you see a square and when you walk up to it and press a certan key like "s" then it will let you save your game here.
Can you do this?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Aug 2003 15:20 Edited at: 26th Aug 2003 15:20
Well, I can. Whether you can is down to you, but it's certainly possible
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 26th Aug 2003 15:22
lol first you need to plan what you want to save, character position? lives? health? etc then put it all into an array and save it or put it all into a separate text file then write some code that uses this infomation to put everything back where it was at the time of the save.


Andrew
22
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 26th Aug 2003 16:53
No i ment in the actual game
M00NSHiNE
22
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 26th Aug 2003 18:12
This is possible but it might get complicated depending on how much needs to be saved. If your game is real time like an FPS youd need to save the player health, ammo, angle, position, enemy positions, animation keyframes, health, what sounds were being played and where they were up to, what items havent been collected, what scenery still remains(if its destructible) and what triggers have happened, such as cutscenes etc so you dont run into them again.

Apart from that it should be a breeze. But i doubt your game will need to get that complicated.

"It's amazin' what you can do with a computer and access to t'internet"
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 27th Aug 2003 00:24
Once again, yes. You can do anything. So please give up with the "can you" posts because the answer will definately be yes

There's no place like 127.0.0.1

There are 10 people in this world, those who understand binary and those who don't.
Kangaroo2 BETA2
22
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 27th Aug 2003 01:08
The way to do it is when you are playing the game and select 'save', get DBB to make a text file on the hard-drive. Then get it to write all your varibles to it. Then when you choose load, it can read the varibles from the text file so they'll update in the game. Simple, once you can appreciate that DBPro can make, read and edit all kinds of files on the hardrive invisibly, whilst still playing a game

Quikly Studio Pro. Soon. Honest.
mR n
23
Years of Service
User Offline
Joined: 25th Jun 2003
Location:
Posted: 27th Aug 2003 01:34
Quote: "Once again, yes. You can do anything. So please give up with the "can you" posts because the answer will definately be yes "


amen to that! (i hope i did the quote thing right...) This isn't like an rpg maker where "oh, you can't pick the frame the animation starts on!" and that's that. this is a language! it's a matter of skill and know-how about 95% of the time, and not limitations. i think you need to actually try db before you start asking questions like that. they've got a trial of it here on the site so please download it!
Andrew
22
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 28th Aug 2003 16:26
LOL
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 28th Aug 2003 18:04
Quote: "LOL"

whys it funny?
'Laughs out Loud'


Login to post a reply

Server time is: 2026-07-25 08:12:22
Your offset time is: 2026-07-25 08:12:22