FebruaryGame/februarygodotgame/scripts/slime.gd

8 lines
168 B
GDScript3
Raw Normal View History

class_name Slime extends Area2D
signal playerDamageSignal
func _on_body_entered(body: Node2D) -> void:
print("Bad guy contact")
playerDamageSignal.emit(body, self)