Is anyone else having a problem?

Sometimes I'll hit the attack button,  and absolutely nothing will happen. Am I doing something wrong or is it a glitch?