About Pop-up menu
sky_ssr
Member Posts: 58
how to do when the scene ends have a pop-up menu to congratulate and to choose to go to next scene or back to main menu
Comments
Ace
That's the popup menu.
I can think of two ways to accomplish what you're trying to do;
1) When the player completes the level you could "Spawn Actor" that is mostly a text display that allows the player to click on Next Level or Main Menu
2) In my game, I just create a new scene that has some stats from the previous level (shots fired, score, lives left, etc). And some clickable actors (Main Menu, Next Level, Replay Level, etc).
Hope that helps.
http://gamesalad.com/blog/
The easiest option is to spawn a single actor with your congrats message and touch here to continue all in the same actor.
What you can do though is setup a Boolean that goes true when the level is complete. and then place all of the buttons and menu background actors off screen and when game.levelcomplete is true you can set them all to have change attribute to move into place. when you do it this way you can also control fade in and out by interpolating alpha so you can create some cool effects that way.
You can also have your entire menu already assembled right off the screen and have all of your actors setup to interpolate their x or y positions when game.levelcomplete is true this will give the effect of the menu sliding in from off screen.
Hope that make sense and helps.
Aaron