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).
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
Dont use pause for a completion menu. you cannot change scenes from pause so you will have a load icon to show the level complete screen and then you will have a load icon to close the close your pause screen and then another to continue to the next level.
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.
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