How to make a character react to objects ?

iadamsiadams Member Posts: 2
edited March 2012 in Working with GS (Mac)
I am creating a character to run but when he reaches a box i want to create a behavior that allows him to switch to a climbing animation and climb the box. How can i code this ?

Comments

  • POMPOM Member Posts: 2,599
    edited March 2012
    Make a game attribute - boolean - call it "climb"
    Now make a rule in your box actor:
    When overlap or colliding with hero :
    Change Game.climb TO true .
    Otherwise
    Change Game.climb TO false

    Now in your hero actor makea rule :
    When game.climb IS true
    Animate climbing !

    Photobucket Roy
  • iadamsiadams Member Posts: 2
    cool thanks.
  • POMPOM Member Posts: 2,599
    cool thanks.
    Did it worked ?!

    Photobucket Roy
Sign In or Register to comment.