Help: climbing a slope

tiestotiesto Member Posts: 122
edited August 2012 in Working with GS (Mac)
hello everybody.
so i began creating an iphone game and i want to put a slope.
but the problem i don't know what to do so my player climb the slope.
so i need your opinion with an explication of how to do it because i am a new user
thank you.

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    constrain playerActor's rotation to slopeRotation

    a gameAttribute: slope … index type

    on slopeActor:
    Rule: when
    Event: overlaps or collides with playerActor
    -changeAttribute: game.slope To: self.Rotation

    on playerActor:
    Rule: when
    Event: overlaps or collides with slope
    -changeAttribute: self.Rotation To: game.slope


    image MH
Sign In or Register to comment.