BRICK CODE

 avatar
Kandif
swift
a year ago
219 B
97
Indexable
extends StaticBody2D

func remove_brick() :
	$Sprite2D.queue_free()
	$CollisionShape2D.queue_free()
	$CPUParticles2D.emitting = true
	$Timer.start()
	remove_from_group("brick")

func _on_timer_timeout() :
	queue_free()
Editor is loading...