So,we have this part of code:
var player=load("res://MovingIcon.tscn")
func ready():
var inst=player.instance()
addchild(inst)
pass
I can understand the part of : ( player=load("res://MovingIcon.tscn") ) and the part of
( var inst=player.instance() ), OR we can say also:
var player=load("res://MovingIcon.tscn")
func ready():
addchild(player.instance())
pass
But, what excactly does the instance() method?
Thank you.