Change scene going to wrong scene

I have a simple function that says if lives equals zero goto scene game over, but instead it goes to scene 2. What is wrong with my code?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Hard to say without seeing the rules but I'd double check and make sure 'lives = 0' is actually 0 when you expect it to be.
  • jssapersjssapers Member Posts: 2
    lives does equal zero, it just goes to the wrong scene
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited August 2013
    Just have to keep narrowing it down. Maybe there is something (actor/behavior) on the scene it's going to that immediately sends it to the 'wrong' scene?

    The change scene behavior can't really be messed up since you choose which scene you want it to go to from the drop down menu, so it must be something else.

    Maybe try sending it to a new, empty scene and see if that works... you'll just have to narrow the possibilities until you find the problem.
Sign In or Register to comment.