0 votes

I've created a simple 2d enemy that can walk and turn at walls and avoid falls. It can detect when the player enters its field of view, but I don't know any good ways to make him stop, dash, stop and dash again at the same distance and timing.
I'm currently using move-and-slide to move it and just scaling up the speed to create the dash, is there any other way?
I'm using timers to time the period between dashes and the small stop, but they don't work the way it should work.
I couldn't find any tutorial at this simple question.

For anyone that helps me, Thank You.

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.