BRICK CODE

 avatar
Kandif
swift
6 months ago
219 B
92
Indexable
Never
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()