+2 votes

I was trying to implement the behaviour of air hockey where the players can dash for a couple seconds, and is done with a space bar. I have worked with the RigidBody2D along with the set_linear_velocity so as for the dash to work out, but I want a simpler way. I want that function for the Area2D too, so that I don't even have to manually increase or decrese the velocity per frame. I also want the dashing to be simulated in any direction the player goes to while disabling the movement controls (WASD or Arrow keys). Can you suggest me some logical methods of dashing?

in Engine by (32 points)
edited by

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.