9 lines
168 B
GDScript3
9 lines
168 B
GDScript3
|
class_name Slime extends Area2D
|
||
|
|
||
|
signal playerDamagSignal
|
||
|
|
||
|
|
||
|
func _on_body_entered(body: Node2D) -> void:
|
||
|
playerDamagSignal.emit(body, self)
|
||
|
print("bad guy yum yum")
|