how to pause an animating actor when touched?
hey gang,
I have an actor on a looping animation, and I'd like it to freeze upon touch, but I'm not sure how to do this since there's not a "stop animation" behavior.
any tips?
thanks much!
I have an actor on a looping animation, and I'd like it to freeze upon touch, but I'm not sure how to do this since there's not a "stop animation" behavior.
any tips?
thanks much!
Comments
create rule:
when self.animate is true (add animation rule)
this should do the job! #:-S
How can I make the actor stay frozen upon touch? As it is now, with your help, the actor freezes upon touch, but resumes animation upon release. I'd like it to stay frozen after release, and unfreeze when it is touched again.
Make a rule that when the actor is touched, AND whichtouch is NOT equal to 1, change whichtouch to 1.
Make another rule for when the actor is touched AND whichtouch = 1, change whichtouch to 2.
Make a rule that when whichtouch is equal to 1, set self.animate to false / otherwise set self.animate to true.