extends Node2D

signal touchedPlayer

@onready var animeplayer = $AnimationPlayer
@export var speedballs = 0.5
@onready var hurt = $AudioStreamPlayer2

func _ready():
	animeplayer.speed_scale = speedballs
	

func _on_area_2d_body_entered(body):
	
	if body is player:
		touchedPlayer.emit()	
		hurt.play()
		
