scene changing

prajpraj Member Posts: 68
edited July 2012 in Working with GS (PC)
i was just revising what i learnt in my first gamesalad day. I was doing a basic scene changing project. i set up 3 scenes - 1,2,3. I made two icons- one for next scene and 1 for previous. When i set next screen' icon to go next scene when pressed. it does it well. however when i set 'previous scene' icon to go back to previous scene when pressed, it goes to the next scene (EG. scene 1 to 2 click next. goes to scene 3 when i click previous to go back to scene 1).

Answers

  • prajpraj Member Posts: 68
    no it is not locked. still the same problem. it goes back to first scene....
  • MotherHooseMotherHoose Member Posts: 2,456
    edited July 2012
    use the actor's X position to set sceneChange

    one actor for sceneChange:
    Rule: when
    Event: touch is pressed
    (in behaviorArea:)
    -Rule: when
    -Attribute: self.position.X > 240
    -changeScene: Next Scene
    -Otherwise:
    -changeScene: PreviousScene

    @};- MH
  • prajpraj Member Posts: 68
    i figured the error. it was the buttons. i mixed up inside and pressed
Sign In or Register to comment.