Godot Version
Godot 4.2.2
Question
So I am trying to add in movement for a 2d character and odnt know why this isnt working as as far as i know it should be any ideas?
extends CharacterBody2D
@export var speed = 400
func get_input():
var input_direction = Input.get_vector("wleft", "wright", "wforward", "wback")
velocity = input_direction * speed
func _physics_process(delta):
get_input()
move_and_slide()