Guest User

follow

a guest
Oct 31st, 2023
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. extends State
  2.  
  3. func enter():
  4. super.enter()
  5. owner.set_physics_process(true)
  6. animation_player.play("follow")
  7.  
  8. func exit():
  9. super.exit()
  10. owner.set_physics_process(false)
  11.  
  12.  
  13. func transition():
  14. if owner.direction.length() < 40:
  15. get_parent().change_state("AttackSkeleton")
  16.  
Advertisement
Add Comment
Please, Sign In to add comment