ForBallToKnow
TaktycznyBocian
plain_text
3 years ago
428 B
9
Indexable
extends RigidBody2D
func _physics_process(_delta):
var bodies = get_colliding_bodies()
for body in bodies:
if body.is_in_grup("Bricks"):
body.get_node("CPUParticles2D").set_visible(true)
body.get_node("CPUParticles2D").set_emitting(true)
body.get_node("Sprite").queue_free()
body.get_node("CollisionShape2D").queue_free()
body.get_node(""Timer).start
Editor is loading...