Page 1 of 1

Can Game-Editor Save Video Games...

PostPosted: Sat Nov 05, 2005 1:59 pm
by Uakari
I'm trying to figure out in how to save my video games level.

So far I found this:

saveVars
loadVars
savecanvas


Anyhow, I'm not sure if this is what I'm looking for. I want to be able to design a game such that the player does not have to restart the whole game every time he closes the window.

Quite frankly I need the levels, score, game items, lifes, & etc. all saved. Not to mention, providing the player 4 memory slots to choose from in using one in saving his/her game.

Is Game Editor capable in do this?



-

PostPosted: Sun Nov 06, 2005 2:33 am
by willg101
Yes, create variables and save them with saveVars. Just make sure all your variables are in the same group. Use saveVars like this:
Code: Select all
saveVars("C:\directory","myGroup");

PostPosted: Sun Nov 06, 2005 3:54 am
by makslane
Don't use a directory in the saveVars function. Just put a file name

Re: Can Game-Editor Save Video Games...

PostPosted: Sun Nov 06, 2005 3:55 am
by makslane
Uakari wrote:I'm trying to figure out in how to save my video games level.


You can use the saveVars and loadVars function to make check points in your game.
There is no possible save the whole game state now.

PostPosted: Sun Nov 06, 2005 11:58 am
by Uakari
Yes, create variables and save them with saveVars. Just make sure all your variables are in the same group. Use saveVars like this:



He says yes.

There is no possible save the whole game state now.


You say no.


... I say what's going on? :shock:

Also can you enlighten me on:
1. same group ---( What's up with this "group" thing I keep hearing on other topics?)
2. game.sav ---(what is this for exactly?)
3. file & location --- (where is this stuff saved at and where?)




BTW I already read:

http://www.game-editor.com/docs/script_ ... m#savevars
http://game-editor.com/forum/viewtopic.php?t=534


.

PostPosted: Sun Nov 06, 2005 12:42 pm
by makslane
What's up with this "group" thing I keep hearing on other topics?


You can save your game variables in different groups (in a same file), like score variables, life variables, damage variables. So, You can choice what you need to load later.

game.sav ---(what is this for exactly?)


You can use any name (with any extension) for the saved file.

file & location --- (where is this stuff saved at and where?)


The saveVars function will save the file in the game directory.

PostPosted: Sun Nov 06, 2005 1:02 pm
by Uakari
Sounds good.


The saveVars function will save the file in the game directory.


Okay. I was wonderng where exactly is the game directory and also how will this work out when I distribute my game to buyers?

PostPosted: Mon Nov 07, 2005 4:57 pm
by makslane
The game directory is the directory that have your game executable file.
If your user install your game in the C:\Games\YourGame the game directory will be C:\Games\YourGame