Brick code

Kandif avatar
Kandif
plain_text
01/31/2023 5:15 PM
292 B
111
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...