Please help me to make this
That is code:
`extends KinematicBody2D
const ACCELERATION = 750
const MAX_SPEED = 50
const FRICTION = 500
var velocity = Vector2.ZERO
onready var animationPlayer = $AnimationPlayer
onready var animationTree = $AnimationTree
func physicsprocess(delta)
var inputvector = Vector2.ZERO
inputvector.x = Input.getactionstrength(uiright) - Input.getactionstrength(uileft)
inputvector.y = Input.getactionstrength(uidown) - Input.getactionstrength(uiup)
inputvector = input_vector.normalized()
if input_vector != Vector2.ZERO
animationTree.set(parametersIdleblend_position, input_vector)
velocity = velocity.move_toward(input_vector MAX_SPEED, ACCELERATION delta)
else
velocity = velocity.move_toward(Vector2.ZERO, FRICTION delta)
velocity = move_and_slide(velocity)`