my animations are not working, please help i can't do this on my own

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By joprace

extends KinematicBody2D
class_name Player

export(int) var JUMP_FORCE = -225
export(int) var JUMP_RELEASE_FORCE = -115
export(int) var MAX_SPEED = 100
export(int) var ACCELERATION = 20
export(int) var FRICTION = 15
export(int) var GRAVITY = 6
export(int) var ADDITIONAL_FALL_GRAVITY = 4

var velocity = Vector2.ZERO

func _physics_process(delta):
apply_gravity()
var input = Vector2.ZERO
input.x = Input.get_action_strength(“right”) - Input.get_action_strength(“left”)

if input.x == 0:
	apply_friction()
	$AnimatedSprite.animation = "Idle"
else:
	apply_acceleration(input.x)
	$AnimatedSprite.animation = "Run"
	if input.x > 0:
		$AnimatedSprite.flip_h = false
	elif input.x < 0:
		$AnimatedSprite.flip_h = true

if is_on_floor():
	if Input.is_action_pressed("Jump"):
		velocity.y= JUMP_FORCE
else:
	$AnimatedSprite.animation = "Jump"
	if Input.is_action_just_released("Jump") and velocity.y < -80:
		velocity.y = JUMP_RELEASE_FORCE
	
	if velocity.y > 0:
		velocity.y += ADDITIONAL_FALL_GRAVITY

var was_in_air = not is_on_floor()
velocity = move_and_slide(velocity, Vector2.UP)
var just_landed = is_on_floor() and was_in_air
if just_landed:
	$AnimatedSprite.animation = "Run"
	$AnimatedSprite.frame = 1

func apply_gravity():
velocity.y += GRAVITY

func apply_friction():
velocity.x = move_toward(velocity.x, 0, FRICTION)

func apply_acceleration(amount):
velocity.x = move_toward(velocity.x, MAX_SPEED * amount, ACCELERATION)
pass