How to make clip play only when clicked

I’m working on a Newgrounds game - not that it is important… But I don’t know how to make my clip to only play the animation when clicked…

The code goes as follows:


Yeh that’s all

first you have to stop your clip and then add to the mouse released the play action
look the following example
clickandplay.wick (2.0 KB)

1 Like

Oh mouse released, not mouse clicked?

Thanks for telling me!

mouse clicked or released. choice is up to you. it may also depend on other programming decisions

Welcome to the forums! @Turple