Character stuck in top left of screen

extends CharacterBody2D

const SPEED = 200

func _physics_process(delta):

var input_vector = Vector2.ZERO
input_vector.x = Input.get_action_strength("ui_right") - Input.get_action_strength("ui_left")
input_vector.y = Input.get_action_strength("ui_down") - Input.get_action_strength("ui_up")
input_vector = input_vector.normalized() * SPEED

move_and_slide()

I’m pretty new to Godot and ive been having trouble with my character movements, the character stays put in the top left corner of the screen, what did I do wrong?

The code is completely fine.

My guess is that you have a Camera2D as a child of the player, so it always moves along with it.
My second guess is that you don’t have any sort of background.

This makes it look like the player is not moving. It does, just the camera always follows, keeping the player in the corner of the viewport.

It was the second one, thank you!