I am trying to set the position of an instance:
extends Node
func _process(delta):
var blockRes = load("res://Instancing/Block.tscn")
var block = blockRes.instance()
add_child(block)
block.set_pos(1, 1)
pass
The debugger says:
Invalid call. Nonexistent function 'set_pos' in base 'Node2D'.
I am new to both Godot and GDScript
Many Thanks,
NodeToad