Click Actor to animate problem
zzap64
Member Posts: 405
I have an Actor with approx 20 frames of animation. I wish to click on him to plat thru the animation once. The problem I have is I have to click on him to play everyframe, is there a way I can click on him once he then plays his animation until the end ?
thankyou.
thankyou.
Comments
Rule
When all conditions are valid:
Touch is released
-----Animate
Thanks
When touch is pressed:
Play animation
Was more of a CRASH man myself
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
when touch is pressed
change self.StartAnimate to 1
Rule
When self.StartAnimate is true
Animate
May need to have a second change attribute in a timer to set the boolean back to false to stop the animation and allow it to be restarted with a second click.
Is all the code for your Actor in the prototype in the library?
When you double-click on the button in the scene, is there a padlock there?
I add a Attribute rule underneath this but cannot find self.StartAnimate under the attribute browser ?
thanks for all your advice.
Just like turning a computer on/off when all else fails and everything works again