Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Nightmare |
func _input(event):
if event.is_action_pressed("my_action"):
play_anim("Attack")
Can you show more code? Nothing seems wrong with this.
exuin | 2021-09-05 19:17
-
You might have not assigned the correct mouse button to the input: (“my_action”).
-
It is case sensitive, so anything like My_action or My_Action won’t work.
-
The 2 points up is also true for the animation name.
-
I need some more code and the animation for more troubleshooting.
ImperialPhoenix | 2021-09-06 07:24