|Attention||Topic was automatically imported from the old Question2Answer platform.|
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?