GeneratorSopli

 avatar
Kandif
python
2 years ago
211 B
32
Indexable
Never
extends Node2D

var sopel = preload("res://Sopel.tscn")

func spawn_icicle():
	var icicle = sopel.instance()
	add_child(icicle)
	icicle.position.x = rand_range(0,1000)

func _on_Timer_timeout():
	spawn_icicle()