This is my code for it
+ Gamepad: On gamepad 0 Button X pressed
+ OR Keyboard: On Q pressed
----+ Player: [X] Is animation "Attack" playing
----+ Player: [X] Is animation "Run" playing
-----> Player: Set animation to "Attack" (play from beginning)
--------+ Player: Direction = 0
---------> Player: Spawn Arrow on layer 1 (image point 1)
+ Gamepad: On gamepad 0 Button X pressed
+ OR Keyboard: On Q pressed
----+ Player: [X] Is animation "Attack" playing
----+ Player: [X] Is animation "Run" playing
-----> Player: Set animation to "Attack" (play from beginning)
--------+ Player: Direction = 1
---------> Player: Spawn BArrow on layer 1 (image point 1)