Mech enemy stomp attack


Author: Austin Anderson
Date: 12/14/23

Problems: 
My problem this week was that when the mech enemy got close to the player it would shoot over the player. The mech enemy would still damage the player, but visually, it looked like the mech was shooting over the player. I fixed this issue with two solutions. First, the mech would have to look down at what it was shooting at. However, this looked very strange when the mech got very close to the player, which brought me to my second solution, the stomp attack.

Solutions:
Getting the mech to look down at what it was looking at was not an easy task. The original solution to use IK was relatively easy, but after this was implemented since the mech is leaning left as it shoots, when I would make its top half lean towards what it was shooting at, it would lean far over to the left. So it took a LOT of tweaking to get the mech to look semi-normal. 


Even with these tweaks to the mech shooting animations, when the mech got close, it was still way off. Because of this, I implemented a stomp mechanic. Whenever the current target is too close to the mech enemy to shoot, the mech enemy does a stomp attack and damages everything in the cube collision in front of the mech.

Please excuse the photos, it is hard to get a screenshot of these attacks in action.

Get Cyber Siege

Leave a comment

Log in with itch.io to leave a comment.