Godot Version
my version is 4.4.1
Question
how do i fix the Expected statement, found “Indent” instead. error
this is my code
extends Node2D
func _process(delta):
| print (Input.is_action_pressed(“ui_w”)) >|position += Vector2(0, -5) * 50 * delta
my version is 4.4.1
how do i fix the Expected statement, found “Indent” instead. error
this is my code
extends Node2D
func _process(delta):
| print (Input.is_action_pressed(“ui_w”)) >|position += Vector2(0, -5) * 50 * delta
Indentation is an important part of GDScript, I’d recommend learning more about the basic syntax.
Currently your post is illegible as a program because it lacks indentation, which is necessary to understand your error too.
Make sure to paste your code inside of a code block