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