Godot Version
Godot 4
Question
I’m new to Godot and I want to make it so that as soon as the scene starts my character walks to the right. I’ve already consulted chatGPT but it didn’t help at all.
if you could tell me what I’ve done wrong, it would help a lot
extends CharacterBody2D
var velh: float = 300.0
func _ready():
velocity = Vector2(velh, 0)
func _physics_process(delta):
move_and_slide()