Final sopergenerator
Anonymous
plain_text
10/19/2022 6:52 PM
544 B
19
Indexable
extends Node2D
onready var timer = $Timer
var sopel = preload("res://Sopel.tscn")
func spawn_icicle() :
for i in 5:
var icicle = sopel.instance()
add_child(icicle)
icicle.position.x = rand_range(0,1000)
icicle.get_node("RigidBody2D").connect("body_entered",get_parent(),"sopel_kolizja")
func _ready():
pass # Replace with function body.
func _on_Timer_timeout():
spawn_icicle()Editor is loading...