gae_wild_jam/scripts/slime.gd

22 lines
479 B
GDScript

extends EnemyBase
# Called when the node enters the scene tree for the first time.
# Called every frame. 'delta' is the elapsed time since the previous frame.+
func _ready() -> void:
super()
speed = 0.04
func _process(delta: float) -> void:
if is_dying:
return
_chase_witch()
pass
func _on_area_2d_body_entered(body: Node2D) -> void:
print("body entered: ", body.name, " | player is: ", player.name)
if body == player:
_die()
pass # Replace with function body.