My lizard stopped walking

When I wrote the code for the lizard to move after the destruction of the object, the lizard walks in one place and does not move to the left. But walking animation plays. What am I doing wrong?

Hi Igor,

Welcome to our community! :slight_smile:

Since we set the speed of the attackers in animation events, you could check if the walking animation calls an event. In the attack method, the speed gets very likely set to 0, which is the reason why the attacker stops moving on the x-axis when attacking.


See also:

It works! Thank you very much, Nina!

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

Privacy & Terms