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?