Saving and loading Script help!

You must understand the Game Editor concepts, before post here.

Saving and loading Script help!

Postby toshiro » Thu Jan 10, 2008 1:36 pm

does any one know the script for saving and loading game data(including all actor positions) and can i make this happens the second time the game starts up. So what im saying is if someone plays the game, gets to a certain point and saves it, when they start up the game again it brings them right back to where the previously were. :? :?:
Upcoming projects: Twilight sKys 15% done, est. release Jan 1st
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score

Re: Saving and loading Script help!

Postby DilloDude » Thu Jan 10, 2008 9:37 pm

You can't just save the entire state of a game. You have to decide which things are important to save, create variables to store them and save those variables, either by putting them in a save group and using saveVars, or by making your own script (which has advantages in that you can use more variable types).
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: Saving and loading Script help!

Postby toshiro » Fri Feb 22, 2008 3:22 pm

Ok so i tried to wing it and find some other way to save and load but i just dont get the coding. Whats the code for saving a single actors postion? If i get that i can just build off of it. Also other than saving the position can you save other things like transpearancy, animation,or events that are disabled? Any help is greatly apriciated
Upcoming projects: Twilight sKys 15% done, est. release Jan 1st
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest