extends CharacterBody2D var gravity = 15 func _physics_process(delta): if !is_on_floor(): velocity.y += 15 move_and_slide() $AnimationPlayer.play('Idle') # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass