Page 1 of 1

Saving the Game

PostPosted: Sun Jan 06, 2008 1:00 pm
by alkoh002
I want to make my games so that you can save, but i know it's hard. Can someone make a complete sort of guide :P on how to make it in Game Editor. Please make it understandable :). cya

Re: Saving the Game

PostPosted: Sun Jan 06, 2008 6:52 pm
by Kalladdolf
ok, how about you tell me first what you wanna save, like, wanna save the position of an actor in a level, score or something?
:)

Re: Saving the Game

PostPosted: Mon Jan 07, 2008 1:09 am
by Murd-Machine[_]
When you create a new variable you can put it in any group you like (Save group). So put all variables you want to save in one group (make special ones for actor coordinates, presense of items and so on...) Use "saveVars("falename", "groupname");" when you want to save it and "loadVars("falename", "groupname");" to load it. However it's quite complex task if you have many equal objects, like an action game with many monsters of the same type. Than you'll have to use indexes of actors instead of names.

Re: Saving the Game

PostPosted: Mon Jan 07, 2008 2:36 pm
by alkoh002
==Kalladdolf== wrote:ok, how about you tell me first what you wanna save, like, wanna save the position of an actor in a level, score or something?
:)


Well, is there a way to like save the current state of the game, so everything stays exactly as it was when u save?

Re: Saving the Game

PostPosted: Wed Jan 09, 2008 8:16 pm
by Kalladdolf
it's basically like murd-machine described it...
if you don't understand, please post a demo where you want to save the current state and I'll see what I can do =D

Re: Saving the Game

PostPosted: Wed Jan 09, 2008 9:18 pm
by Bee-Ant
alkoh002 wrote:
==Kalladdolf== wrote:ok, how about you tell me first what you wanna save, like, wanna save the position of an actor in a level, score or something?
:)


Well, is there a way to like save the current state of the game, so everything stays exactly as it was when u save?

It'll need too much of variables which declare your position, attributes, and many thing

Re: Saving the Game

PostPosted: Thu Jan 10, 2008 6:45 am
by alkoh002
Ill post a demo later on, and, is it possible to have like one saving machine in the game that u can go back to whenever you want to save, and it saves the current state?

Re: Saving the Game

PostPosted: Thu Jan 10, 2008 7:42 am
by Kalladdolf
it exists, you'll have to build it with script editor, though, like m-m explained.

Re: Saving the Game

PostPosted: Thu Jan 10, 2008 11:05 am
by Bee-Ant
m-m?

Re: Saving the Game

PostPosted: Thu Jan 10, 2008 6:11 pm
by Kalladdolf
murdmachine

Re: Saving the Game

PostPosted: Thu Jan 10, 2008 7:20 pm
by alkoh002
Thats great! xD, thanks, ill post a demo in a while, and ill keep u informed on this topic ^^.

Re: Saving the Game

PostPosted: Sun Jan 13, 2008 1:29 pm
by alkoh002
Ok, im posting the demo soon (a couple of days) i just got do do, the first quest, and some houses, there will be a "saving button" where u click and the current state of the game is saved, is that ok kalladolf?