Brick code

 avatar
Kandif
plain_text
2 years ago
217 B
95
Indexable
extends StaticBody2D

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

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