Page 1 of 1

Load/Save HELP!

PostPosted: Thu Apr 06, 2006 4:03 pm
by Phil
Hi, I want to make a menu with save game,load, quit PLEASE HELP!

PostPosted: Fri Apr 07, 2006 12:08 am
by DilloDude
Have an animation for menu with your options. Create filled-region actors around each option. On mousebutton down->left->save, write
Code: Select all
savx=Player.x;
savy=Player.y;
saveVars("savegame", "save");

Just make two variables, savx and savy, which save in "save".

On mousebutton down->left->load, write
Code: Select all
loadVars("savegame", "save");
Player.x = savx;
Player.y = savy;


On mousebutton down->left->exit, write
Code: Select all
ExitGame();


PS: you may want to save other variables in "save" like health, lives etc