Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends BaseState
- func enter():
- enemy.play_animation("run")
- func physics_update(delta):
- if enemy.distance_to_player() < enemy.attack_range:
- get_parent().change_state(get_parent().get_node("Attack"))
Add Comment
Please, Sign In to add comment