|
Post by johnlanz on Feb 25, 2017 5:29:37 GMT
Hi Guys,
What is the best way to handle jump attack or any attack that requires 1 to 2 secs delay before hitting the target. The problem is when using jump attack you can't hit a target because the AI is not already there when you land. The AI keep circling so the attack is useless. Is there a way to face or lookAt the target while you're in mid air animation?
Thanks John
|
|
|
Post by sickscore on Feb 25, 2017 7:54:32 GMT
Hi Guys, What is the best way to handle jump attack or any attack that requires 1 to 2 secs delay before hitting the target. The problem is when using jump attack you can't hit a target because the AI is not already there when you land. The AI keep circling so the attack is useless. Is there a way to face or lookAt the target while you're in mid air animation? Thanks John Maybe play around with rotating the rigidbody of your character towards the closest enemy? - Quaternion.lookRotation - Quaternion.Lerp
|
|
|
Post by Invector on Feb 25, 2017 13:01:41 GMT
the easiest way would lock-on the target and then make the jump attack. dark souls deals with jump attacks the following way: loop animation preparing the attack while falling and only at a certain distance of the target, triggers the actuall attack animation.
|
|
|
Post by sickscore on Feb 25, 2017 13:12:36 GMT
the easiest way would lock-on the target and then make the jump attack. dark souls deals with jump attacks the following way: loop animation preparing the attack while falling and only at a certain distance of the target, triggers the actuall attack animation. Yeah, that lock-on-target idea could be a really good solution. Nice approach!
|
|
|
Post by johnlanz on Feb 27, 2017 3:03:27 GMT
Thanks for the reply.. I'll try to record the gameplay using jump attack with lock-on target later and see if that's right.
|
|