Can Game-Editor Save Video Games...

Non-platform specific questions.

Can Game-Editor Save Video Games...

Postby Uakari » Sat Nov 05, 2005 1:59 pm

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?



-
Uakari
 
Posts: 4
Joined: Sat Nov 05, 2005 1:43 pm
Score: 0 Give a positive score

Postby willg101 » Sun Nov 06, 2005 2:33 am

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");
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby makslane » Sun Nov 06, 2005 3:54 am

Don't use a directory in the saveVars function. Just put a file name
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

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

Postby makslane » Sun Nov 06, 2005 3:55 am

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.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Uakari » Sun Nov 06, 2005 11:58 am

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


.
Uakari
 
Posts: 4
Joined: Sat Nov 05, 2005 1:43 pm
Score: 0 Give a positive score

Postby makslane » Sun Nov 06, 2005 12:42 pm

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.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Uakari » Sun Nov 06, 2005 1:02 pm

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?
Uakari
 
Posts: 4
Joined: Sat Nov 05, 2005 1:43 pm
Score: 0 Give a positive score

Postby makslane » Mon Nov 07, 2005 4:57 pm

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
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest