Setup: The player is meant to be capable of both ranged and physical attacks.
Problem: The physical attack animation won't play at all when X is pressed even though an internal flag deactivates movement and ranged attack animations from playing.
Okay, I looked into the coding, and I realize that the cause for the problem might be the Collision Events under line 126 which is conflicting with the Physical Attack animation causing it to not play at all.
figured it out. your events in the group 'collision' are overpowering the attack animation event you made
not an easy fix unfortunately. you're gonna have to do some thinking