Pause, Reset, Change scene not working from scene to scene?
Hey all, I recently changed the way that my character moves in my game, but ever since I did that, reset, pause, change scene etc. all stop working after I complete the first level.
For example, I have code for dying on my main character that says:
if self.position.Y < -60
then reset scene
It works perfectly fine within my first level, but then after i complete the first level and go to the next one it stops working. same with my pause button and everything.
I have no idea how these functions could have gotten affected by me simply changing the movement of my player. I've even turned all of the movement off to make sure that I did not screw anything up while I was editing it and I am still getting the same problem. I also have code that resets all of the attributes every time there is a new scene. I have tried simply duplicating the first level and seeing if that works but no luck. I am completely baffled, and after a nice morning of yelling at my computer I've decided that the best thing to do is ask here lol.
For example, I have code for dying on my main character that says:
if self.position.Y < -60
then reset scene
It works perfectly fine within my first level, but then after i complete the first level and go to the next one it stops working. same with my pause button and everything.
I have no idea how these functions could have gotten affected by me simply changing the movement of my player. I've even turned all of the movement off to make sure that I did not screw anything up while I was editing it and I am still getting the same problem. I also have code that resets all of the attributes every time there is a new scene. I have tried simply duplicating the first level and seeing if that works but no luck. I am completely baffled, and after a nice morning of yelling at my computer I've decided that the best thing to do is ask here lol.
Comments
Im really starting to think this is just some crazy bug in gamesalad because I cant think of ANYTHING that would have caused this to happen. I have a pause button that says:
if touch is pressed
-pause game: go to scene "puzzle paused"
and it works in the first scene i choose, but when I go to the next level, nothing.