Godot Version
4.2.2
Question
I started doing a tutorial by Clear code for reference
extends Sprite2D
Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
Called every frame. ‘delta’ is the elapsed time since the previous frame.
func _process(delta):
var direction = Input.get_vector(‘Left’,“Right”,“Up”,“Down”)
print(direction)
and instead when my code is supposed to give the desired output when pressed the keys, it gave this instead;
(0,0)
(0,0)
and so on
Can this be fixed?