give your player an instance variable, say "shoot", then add a shooting is 0 condition to your current movement conditions...
then change space is pressed to set shoot to 1
then trigger your shoot anim off is shoot=1 condition
after shooting animation done, set shoot back to 0