micolord wrote:How can I create a saving system? You know like they can save it which they will pick a 5 slot where to save it.
I am having a hard time in this customization system with the character :S Anyone got some time to help me via Teamviewer? I would very much appreciate that
Wow thats a real tough one!
That takes a mega-ton of work and I dunno if I can do that XD
I can teach you how to save, though.
First, create variables, name them:
- PX
- PY
- HP
- PHP
- MP
- PMP
- ATK
- SPD
- MAG
- LUCK
- DEF
- patk
- pspd
- pmag
- pluck
- pdef
Save Make sure they are all in a save group called "data", but not "HP and MP" make them not have a save group.
Now, when ever you want to save the game, you'd do this:
- Code: Select all
saveVars("saveGame.sav", "data");
PX=x;PY=y;
PHP=HP; PMP=MP;
LUCK=pluck; MAG=pmag;
DEF=pdef; SPD=pspd;
ATK=patk;
Now to load the game:
- Code: Select all
loadVars("saveGame.sav", "data");
x=PX; y=PY;
HP=PHP; MP=PMP;
pdef=DEF;patk=ATK;
pmag=MAG;pluck=LUCK
pspd=SPD;
That should work