I currently implemented a new animation system for both the player and the monsters, which makes life easier on writing frame codes, you don't have to write frame by frame like the traditional method.
The frame code I got from the scratch tutorials that were used by the player, and I modified that function for monsters.
The cool thing is that when a monster is in the middle of his pain frames, he does NOT get out of his running state, he can still move and fire his weapon IN THE MIDDLE of the pain sequence! (If you misunderstood this, when the monster goes to pain frames, he doesn't need to wait until the last frame to move and shoot. It interrupts the pain sequence and go directly to the shooting sequence!) Very player-like, I loved that behavior!
I'm gonna implement that for all monsters, I only implemented for the grunt and the ogre yet.
EDIT: There's a little bug that a monster may shoot his weapon or melee attack twice on the same animation frame...
