Quoted By:
Trying to write a script for dropkick move in a 2d game. Currently it looks like this and works
if not is_on_floor() and input_dropkick:
sprite.play("dropkick")
dropkick = true
velocity.y = DROPKICK_SPEED
I wanted to add a diagonal version as well, but adding velocity.x =NUMBER doesn't seem to do anything. This function is in "handle input". I also don't understand why the x component of velocity does nothing midair.
Pic unrelated