added controller support and attack

This commit is contained in:
2025-06-25 21:47:22 -05:00
parent 60432795f2
commit 36cde498e0
8 changed files with 103 additions and 20 deletions

View File

@@ -1,2 +1,11 @@
extends State
extends PlayerState
class_name PlayerAttack
func Enter():
character.anim_player.play("attack")
character.velocity.x = 0
character.velocity.z = 0
func Update(delta):
if !character.anim_player.is_playing():
Transitioned.emit(self,"on floor")