Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | scooty |
So I’m making an NPC with a kinematicbody2d follow a path by having it linear interpolate to each point in the path. The issue that I’m having is that I want to detect when it’s moving so that I can implement a walking animation, but since it’s moving through linear interpolations I can’t have it detect through velocity, and I’m having trouble figuring out other ways to achieve this.
This is what makes it move:
self.global_position = StartPoint.linear_interpolate(NewPath[0], .15)
Any help?