extends RigidBody2D @onready var animated_sprite_2d = $AnimatedSprite2D @onready var animation_player = $AnimationPlayer func _ready(): animated_sprite_2d.play("default") func _on_activate_body_entered(body): if body.is_big: animation_player.play("destroy")