There are no stated errors, but the game won't react at all to my key inputs. Below is my code. I want to use the key input system instead of the map. Feel free to tell me what has worked for you. Also, there's this blue bent arrow next to the starting function line, which I'd like to know how to remove.
extends CharacterBody2D
var speed = 100
var direction_x = 0
var stopped = 1
func _physics_process(delta):
if stopped == 1:
direction_x = 0
if Input.is_key_pressed(KEY_A):
stopped = 0
direction_x = -1
else:
stopped = 1
if Input.is_key_pressed(KEY_D):
stopped = 0
direction_x = 1
else:
stopped = 1
velocity.x = direction_x * speed * delta
move_and_slide()