Click the character, then the button that appears to attack.
I fixed the problem simply by a 'repeat until' block to fix the problem, so I'm going to program and ending.