Pop up menu AKA Level complete (Retry or Next Level)
I am currently working on a game and i am having an issue with getting the game to start fresh in level 2.
So when the game ends i spawn an actor that says You Win. on the Actor it also has a Retry Button and a Next Level button. When you touch the next level button it goes to the correct scene but it leaves the Actor that has the Retry button and Next Level button overlaying the new scene how do i fix that. i know it cant be that hard to fix or i am just over looking something.
Thanks in advanced
So when the game ends i spawn an actor that says You Win. on the Actor it also has a Retry Button and a Next Level button. When you touch the next level button it goes to the correct scene but it leaves the Actor that has the Retry button and Next Level button overlaying the new scene how do i fix that. i know it cant be that hard to fix or i am just over looking something.
Thanks in advanced
Best Answer
-
Braydon_SFX Posts: 9,273
Why not put the actors on the scene but out of the way from the player.
Then, locate where you want them to move to.
Then, you'll have a rule in each actor when you press pause or when you win a game
When attribute game.Win or game.Pause is true
Change attribute self.PositionX to Whatever
Change attribute self.PositionY to whatever
This will move the objects or buttons to where you want them.
Then you would just move them back to their starting points when you need them to. Before you change scene, just move them back so the player cant see them.
Hope this helps.
BrayMy GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Answers
Thanks that worked perfectly.