Hi there people and other sentient things. Im a newbie at codding so i have a noob questions to ask. get ready!
This is my last masterpiece, well... wait a 5 sec, and she will run, she is a little shy u know...

And my question is,
How can i stop my character stop running when she is on the air, jumping,
And jump animation doesn't work, i dont know why, realy .s
and how can i rotate this girl,
As you guys see this girl only move on X-axis, so i have to rotate her 180 degree.
OR u guys , offer me some tutorial. i mean, i look around o lot but couldn't find any, or i find it but i didnt even know what i find. who knows. :) any way.
if there is a tutorial that can teach me how to play already animated 3d animations on godot with clean manner, it will be reaaaaly great. as i said, i check a lot of tutorials and i got the few ideas that how can i do this thing right, but i also confused.
aaand this is my code:
extends KinematicBody
var direction= Vector3(0,0,0)
var gravity= 40
var jump= 14
onready var aniplayer = get_node("karakter mesh/AnimationPlayer")
func _physics_process(delta):
#gravity
if not is_on_floor():
direction.y -= gravity* delta
move_and_slide(direction,Vector3.UP)
#left right movment
if Input.is_action_pressed("ui_left"):
direction.x=-15
aniplayer.play("run")
elif Input.is_action_pressed("ui_right"):
direction.x=15
aniplayer.play("run")
else:
direction.x= lerp(direction.x,0,0.2)
aniplayer.play("iddle")
#jumping
if Input.is_action_pressed("jump") and is_on_floor():
direction.y = jump
aniplayer.play("jump-up")
this are my animations name on the character
run
jump-up
iddle