Pop up menu AKA Level complete (Retry or Next Level)

whycaliwhycali Member, PRO Posts: 87
edited June 2012 in Working with GS (Mac)
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

Best Answer

  • Braydon_SFXBraydon_SFX Posts: 9,273
    edited June 2012 Accepted Answer
    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.

    Bray

Answers

  • poorcollegedevpoorcollegedev Member Posts: 289
    Maybe destroy the actors
  • whycaliwhycali Member, PRO Posts: 87
    Maybe destroy the actors
    I have tried that but nothing happens it still overlays the next scene with saying you win it doesnt diaper when the next level starts.
  • whycaliwhycali Member, PRO Posts: 87
    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.

    Bray
    As soon as I get back to my house I will try that. Thanks for your help.
  • whycaliwhycali Member, PRO Posts: 87
    Bray

    Thanks that worked perfectly.
Sign In or Register to comment.