Load/Save HELP!

Game Editor comments and discussion.

Load/Save HELP!

Postby Phil » Thu Apr 06, 2006 4:03 pm

Hi, I want to make a menu with save game,load, quit PLEASE HELP!
HELP!
Phil
 
Posts: 4
Joined: Tue Mar 21, 2006 3:38 pm
Location: Bulgaria
Score: 0 Give a positive score

Postby DilloDude » Fri Apr 07, 2006 12:08 am

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
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest