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 ?
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 !
Comments
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 !