Lizard Collides with Defender, animation stops, sprite keeps moving to the left

Just finished following the Make Our Attackers Attack lecture, got the Lizard enemy set up with scripts, collider, rigidbody, and animator rigged up.
The lizard spawns fine, transitioning between jumping animation and walking animation smoothly, but as soon as the lizard comes near a deployed defender, it become a moving sprite.
It keeps the same movement speed but is not continuing any animation whatsoever.
If anyone can help, it would be really helpful :slight_smile:

1 Like

Hi Jonathan,

Please check your attack animation. Is there an animation event which sets the speed/moveSpeed to 0?

1 Like

There is no animation event at all for this animation. Is this what’s causing the problem? Do I just add an animation event and set the speed to 0?

It’s working now. Somehow I didn’t notice the part when rick places an animation event on it.
Thank you, Nina :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms