I mean when its at 1 when clicked again it goes back 0.
Assuming that you have just two frames you could do:
On Object Clicked: ---------- Set Frame to: (Self.AnimationFrame +1) % Self.AnimationFrameCount
==========================================================================
Also, you can do it by adding Conditions check:
On Object Clicked:
Subevent------Sprite.Frame = 0 --------------- Set Frame 1
Subevent------Else --------------- Set Frame 0