![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | kevin117 |
I have a script where I load a scene of my character, but when playing with its properties I have an error, just in the final line and this is the error “Invalid set index ‘position’ (on base: ‘PackedScene’) with value of type ‘Vector2’”. I hope you can help me:)
var enginner = load(“res://scenes/enginner.tscn”)
var pos = Vector2(0,5)
func _ready():
add_child(enginner.instance())
engineer.positon = pos