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