PauseGameOn();
PauseGameOff();
You can still recieve mouse/keyboard events during this time. You can't really animate the menus, but you can have buttons that can be clicked on.
So create an actor called menu or something. Make all menu parts children of this actor.
Put this menu and all of its parts above or below the action screen.
Make a pause variable to simplify the control of all of this.
give it a 50% transparent black screen cover....and overlay pause menu options on that(the smokeout effect of this over the action when paused is a really nice effect).
Always create one menu actor, and have all other menu pieces as children of that, so you can control the whole menu easily.
So for instance, actorx>keydown>start>
- Code: Select all
switch(pausevariable){
case 0:
menu.y=n; //Where n puts the menu onscreen
pausevariable=1;
PauseGameOn();
break;
case 1:
PauseGameOff();
pausevariable=0;
meny.y=m; //where m puts the menu offscreen again
break;
}