need life help

quique13quique13 Member Posts: 99
edited December 2011 in Working with GS (Mac)
how can i make that when i make that lives = 0 game over scene appears

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    have an attribute called lives, when you want to take a life away change attribute lives to lives-1

    then have a rule when attribute lives is less then or eqaul to 0,
    change scene to game over scene
  • calvin9403calvin9403 Member Posts: 3,186
    when attribute =0

    spawn image game over scene

    or have the scene there and change the alpha to1
  • ozboybrianozboybrian PRO Posts: 2,102
    You could use a boolean to though right guys?
  • quique13quique13 Member Posts: 99
    thanks another question when you actually have more than 1 actor that its moving to a place and you touch him to kill him so the problem is that i want it that no matter what actor you tap last it goes to the next scene
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    @ozboybrian - I dont think so unless you only had 1 life.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    "thanks another question when you actually have more than 1 actor that its moving to a place and you touch him to kill him so the problem is that i want it that no matter what actor you tap last it goes to the next scene"

    Then you would need an actor count attribute that keeps track of how many actors are onscreen. Every time one is tapped and destroyed, change the attribute actorcount to actorcount -1. And when it reaches 0, go to whatever scene. Basically the same thing as what you asked earlier.
Sign In or Register to comment.