Animated a sprite only on mouse click?

bdapps

Member
Hi,

My sprite is currently animated, and it's animated the entire time. Is there a way to make the sprite only animate if it detects a mouse click?

I have a bunny in my game that hops, and I want it to only hop when I click the mouse to move it forwards. Thanks!
 

TheouAegis

Member
Set image_speed to 0 in the Create event. Set it to 1 when you click the mouse. Set it to 0 when you reach your destination.
 
Top