Pause, Reset, Change scene not working from scene to scene?

NtGNtG Member Posts: 103
edited January 2012 in Working with GS (Mac)
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.

Comments

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    edited January 2012
    Hey, if you've moved the character in the other scenes then the x/y pos would change...check the new position inside the actor's position on the left.
  • NtGNtG Member Posts: 103
    I dont mean to be rude, but that literally has nothing to do with my problem.

    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.
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Are you sure all your scene's actor share the same code, sometimes the actor could be grabbing rule from prototype and some on instance. Better check all your actor's rule in each scene.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Instead of using "reset scene" try using "go to scene" in that rule, and see if that works.
  • NtGNtG Member Posts: 103
    I actually fixed it by changing something that was completely unrelated to all of it... weird.
Sign In or Register to comment.