How do I change animation?

Hi, GS dudes.
I am gonna change animation when it is clicked.
eg. Shaking cookie -> click it -> Move and decrease.
How do I make it? Please give me an example.
I am gonna change animation when it is clicked.
eg. Shaking cookie -> click it -> Move and decrease.
How do I make it? Please give me an example.
Comments
Make a self attribute in the actor called touched.
Have a rule when touch is pressed
-change attribute touched to true
Then a rule when attribute touched is true
-animate(the animation you want to do after its touched)
OTHERWISE
animate(the animation you want to do before its touched)
Thanks, John !!!