Problems with Top-Down Movement and Animation

Godot Version: 4.3.stable

Question:
Hello, Godoters (this is one of the worst nicknames I created in all my life)! I’ll warn you now: sorry for my bad English (I’m Brazilian), but anyway… I’m creating a 2D Top-Down game and I’m experiencing a problem with my script: the character doesn’t move. I had managed to make it work, but I experienced a problem that when I moved left and right it only showed the first frame of the animation and when I moved up and down there was no animation, so I went looking for another tutorial and now it doesn’t even move. My script below:
extends CharacterBody2D

var Direcao: Vector2 = Vector2.ZERO
@export var Velocidade: int = 50

func _process(_delta): 
	Input.get_vector("cima","baixo","esquerda","direita")
func _physics_process(_delta):
	velocity = Direcao * Velocidade
	move_and_slide()

Can someone help me?

you can use this:

dirc = vector2()
velo=30

if Input.is_action_pressed("ui_up"):
    dirc.y=-velo
    $sprite2D.play("up")
elif Input.is_action_pressed("ui_down"):
    dirc.y=velo
    $sprite2D.play("down")
else :
    dirc.y=0
    $sprite2D.play("idle")
if Input.is_action_pressed("ui_right"):
    dirc.x=velo
    $sprite2D.play("right")
elif Input.is_action_pressed("ui_left"):
    dirc.x=-velo
    $sprite2D.play("left")
else:
    dirc.x=0
    $sprite2D.play("idle")