I need to make a scene where I am chasing another character and they may not be in the same lane or height.
Both characters are dynamic with character controllers and have one being controlled by the AI. And I need to jump over/leap/tackle/hit or do much more and all should be dynamic and can fail midway if the collision fails due to changes in speed or other events.
I am using Mecanim state machines for all my animations.
Now the way I think they might have done it in subway surfers is actually create the Cop & the Player as 1 skinned mesh with animations for :
- Kid doing Graffiti
- Kid Running/Jumping/Rolling (without
the cop inside the view)
- Kid Running/Jumping/Rolling (while
being chased by the cop inside the
- Kid losing balance after almost
crashing (with the cop appearing
into the view for 2 seconds)
- Kid getting hit by train
- Kid crashing and getting
caught/carried & lifted by the cop
Kind of like this : Subway Surfers Game Review - YouTube
So… how do you do it?
How do they do it in say Football games where one player can make the other one fall by pushing him? Or In some high-end RPG games where two characters exchange items by hand? Or wrestling games where people lift/grab each other?
Let me know please.