How do I make a win/lose condition?

CabacoCabaco Member Posts: 414
edited November -1 in Working with GS (Mac)
i.e. I am making a runner type of game that when you get hit you lose and get to a certain scene.
How do I do this?

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    When your actor lives is zero, display a you lose screen.
    when touch is press then go to next level( set this up in the lose screen actor)

    Calvin
  • CabacoCabaco Member Posts: 414
    I dont get it dude... Any other solutions like colliding?
  • DreamLabDreamLab Member Posts: 2,127
    Ok I will try to explain.

    set up an integer attribute. call it lives. and make the number how ever many lives you need. and put, when actor overlaps or collides with (the enemy) lives minus one. and then put when attribute(the integer attribute) lives =0 change scene to whatever scene you want.
    thanks
    DL
  • calvin9403calvin9403 Member Posts: 3,186
    Colliding will work, but how many lives does your actor has
  • CabacoCabaco Member Posts: 414
    Thanks I did it!
  • a7medo778a7medo778 Member, PRO Posts: 119
    i got a question
    whats the best way to restart the level after the user get you ost mwssage
Sign In or Register to comment.