Guest User

MeleeAttack

a guest
Oct 20th, 2023
1,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. extends State
  2.  
  3. func enter():
  4. super.enter()
  5. animation_player.play("melee_attack")
  6.  
  7. func transition():
  8. if owner.direction.length() > 30:
  9. get_parent().change_state("Follow")
  10.  
Add Comment
Please, Sign In to add comment