can anyone help me out ? i cant really understand why but i can only go left and right, the other options dont word, this may also be an issue with my binds so ill link a screenshot
extends CharacterBody2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Input.is_action_just_pressed("left"):
position.x += 0.5 * delta
elif Input.is_action_just_pressed("right"):
position.x -= 0.5 * delta
elif Input.is_action_just_pressed("up"):
position.y += 0.5 * delta
elif Input.is_action_just_pressed("down"):
position.y -= 0.5 * delta