gae_wild_jam/scripts/slime.gd

18 lines
270 B
GDScript

extends EnemyBase
func _ready() -> void:
super()
speed = 15.0
func _process(delta: float) -> void:
super._process(delta)
if is_dying:
return
_chase_witch()
func _on_area_2d_body_entered(body: Node2D) -> void:
if is_dying:
return
if body == player:
die()