So I'm trying to make an endless runner and I took a code from the internet for the endless generation.
So here is the code:
export (Array, PackedScene) var scenes
for scene in scenes:
var object = load("res://Scenes/Objects1.tscn")
var objectinstance = object.instance()
objectinstance.position = Vector2(80, -200)
If I run the code nothing happens, no error no warning just nothing. I tried different tutorials too, but there was no difference at the result. Whats wrong with the code?