ok do this : first of all you have, lets say a button object with 20 frames you can change the frames from the properties and put the speed of animation to 0
and event will be like this :
event
condition1:mouse : clicked on object --> button
condition2:button object: compare frame = 0
action1:button frame = 1
in this one you will only change to 1 frame for example if player collision with door it open like this or press button and so on..
or
event
condition1:mouse : clicked on object --> button
action1:button:set frame --> self.animationframe +1
in this one everytime you click on the object it will change to the next frame