I just made a function-based animation control system using a "this sprite only" variable. You can customize how long (in ticks) it takes for an enemy to iterate between costumes.
Also the gun looks way cooler now 'cause I animated it.