Please use more descriptive topic titles. I've let it go for a while, but people seem to continue to do it. It is a lot easier for users searching for answers if the posts have relevant titles. So while it doesn't benefit you directly, it does anyone who is trying to find an answer (since searching the forums is a good idea before asking a question). This prevents too many duplicate questions.
Goomba wrote:How would I make it so whenever the character punches that it can hurt the enemy? Then when it's still that the character can be hurt?
Normally you would use some form of variable to determine if the actor is punching or not. Then in the collision code between the two actors, you check if the actor is punching or not. If it is, then put your "hurt the enemy" code, else, put the code for when the player is hit.