-
Animating Character
I have it so an MC appears and does the animation it has inside it (at the moment for test purposes it just moves down). I placed it on a seperate frame on a layer, and I'm using gotoAndPlay to make it appear and animate.
However it loops the animation. What I want to happen is on command, an MC to appear, play its animation once, and then disapear. How should I go about that?
Last edited by xtrava; 11-21-2006 at 05:32 PM.
-
put on the last frame inside the movieClip a script like this:
Code:
stop();
this._visible=false;
and from the main timeline trigger from the timeline or a button something like this:
Code:
movieClipInstanceName.visible=true;
movieClipInstanceName.gotoAndPlay(1);
of course you could archive the same with just an empty frame inside the movieClip as the last frame so you wouldn´t need the _visible command. Is this a solution that works for you?
-
Thanks. I can get on with making some silly animations now :P Basically I have a little fella who stands still in the middle of the stage, and when you press say, the right key, his right arm will lift with a thumbs up :P
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|