you won reappears in next level at the start???

ConricoConrico Member Posts: 0
Hi Guys, im building a "throw the box" game similar format to an angry birds game. the objective is to throw the box to the huts in the village and effectively the huts dissappear, when you get rid off all the huts you win the level and a "You Won" actor is spawned on the screen. if touch is pressed on the You won actor, it changes scene to "Select level" where you can tap level 2 to start playing it. once level 2 is touched, then Level 2 comes up but the you won actor is still present and if you click it it takes you to select level again where you can select level 3???? how do i stop it appearing at the start of the level and ONLY spawn at the end when it needs to be. ive tried so many things but am on the verge of giving up!!!!

Comments

  • colandercolander Member Posts: 1,610
    I'm not sure why you are spawning your win actor. You could place it off the screen on every scene with a rule which when your win condition is met moves it on scene where the player can access it. You can do this by changing self.Position.Y or X. When it is pressed and the scene changes your win condition will no longer be true and the You Won actor will be off screen and unaccessible by the player.

    Because it is a button don't just hide it by changing its self.Color.Alpha. It will still be active even though you can't see it.
  • UtopianGamesUtopianGames Member Posts: 5,692
    Sounds like your changing a Boolean to true to spawn the win actor so you need to make sure you change it back to false.

    Darren.
Sign In or Register to comment.