I'm trying to figure out how to make sure new instances(asteroids) spawn in front of my "player" when he is moving and the ones that are out of the view get deleted. because for now, each asteroid is spawning to slow behind the player. also how would you make them spin slowly when spawning, in different directions to look more like "realistic asteroids", if the asteroids come from the bottom up it doesn't bother me thats actually good to?
if this looks bad I barely know anything about codeing.
var preflyingobject= preload("res://objects/flyingobject.tscn")
Called when the node enters the scene tree for the first time.
if "flying" or "player" in body.name: