Yeah the reason that doesn't work as expected is because framecount is always 1 higher than the final frame, because frames start at 0. The logic to make it work would be something like, on sprite clicked, if current frame not equal to object.animframecount-1 then add 1 to frame else set frame to 0. Which is effectively saying, on object clicked if you are not on the last frame then go to next frame else go to the first frame.