hi, i'm traying to make a movement in the air while my player is jumping, but a have some problems; when the player it's in the point 0 of Y qhuen it jump i stop the movement in Y so i can make a displacement in X while i'm pressing "uiright" or "uileft", i got this:
if (!is_on_floor() && movimiento_cebollin.y > 0 && Input.is_action_pressed("ui_right")):
self.position.x += 100
var air_displacement = true
movimiento_cebollin.y = 0;
if (air_displacement):
#get_tree().set_pause(true);
print("here it's has to fall")
movimiento_cebollin.y -= cebollin_jump_speed;
when 100 is added to self.position.x i want that the player inmediatly stop and fall, but it's keep falling in a vertical way, and also the movement look's like a teleport lol