Jump to content

how to play multiple frame sequence one after another in same movie clip


Avinash kumar
 Share

Recommended Posts

frame = animations[animations.selected];

At runtime i'm fetching currentFrame in ticker. And checking if currentFrame === frameEnd then performing gotoAndStop(37). Now problem is when 1st sequence is stopped I want to play another sequence in loop eg. worm_move. Both sequence belong to same movieclip. First sequence is working fine But we are facing issue in second sequence
/** In ticker add both sequence are calling, when selected changed to second sequence(worm_move), it is not getting played **/ 
this.ticker.add(() => {
if (mc.currentFrame === frame[1]) {
mc.gotoAndStop(frame[1]);
}
});

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...