Godot 3.5
Выдаёт ошибки
W 0:00:01.778 The property 'position' is not present on the inferred type 'Node' (but may be present on a subtype).
<Ошибка C++> UNSAFE_PROPERTY_ACCESS
<Источник> Player.gd:54
W 0:00:01.778 The property 'position' is not present on the inferred type 'Node' (but may be present on a subtype).
<Ошибка C++> UNSAFE_PROPERTY_ACCESS
<Источник> Player.gd:55
Хотя такое свойство есть, и даже в быстром наборе
Вот кусок кода:
52: func _physics_process(_delta):
53: var direction = get_direction()
54: $Sprite.position.x -= direction.x
55: $Sprite.position.y -= direction.y
func get_direction():
return Vector2(
Input.get_action_strength("move_right" + action_suffix) - Input.get_action_strength("move_left" + action_suffix),
Input.get_action_strength("move_down" + action_suffix) - Input.get_action_strength("move_up" + action_suffix))