|
Post by backspin on Jul 27, 2013 21:53:28 GMT
Hi. I'm new to Hippo and trying to wrap my mind around the way Hippo approaches certain things.
I have a circle and a button. The circle has a simple animation starting at frame 1. It just moves to the right.
I don't want it to start until I press the button. Here is the code:
Movie General(): var Animation = false; GotoAndStop(0);
Movie OnUpdate(): if( Animation == true ){ GotoAndPlay(1); }
Button OnClick() Animation=true;
This starts out the way I want - the circle is not visible. When I click the button, the circle appears in the frame(1) position, but the animation doesn't play.
What am I doing wrong?
|
|
|
Post by backspin on Jul 28, 2013 1:44:00 GMT
I think I figured it out.
Turn auto-play off, create the animations at different points on the timeline, and then use PlayClip(a,b) to run the animations as needed using button events. Is that the general idea?
|
|
|
Post by Hippani on Jul 28, 2013 6:06:09 GMT
Yes you can do it that way or turn off the timeline.
|
|