korolariya Posted December 6, 2014 Share Posted December 6, 2014 Sorry for my bad english.How to animate a few frames from the set.For example the entire frame 10 need only to animate the first to fourth.But sometimes you need to animate a 2-3 frame. Quote Link to comment Share on other sites More sharing options...
shmikucis Posted December 7, 2014 Share Posted December 7, 2014 EDIT: sorry, didn't notice at first that it is Pixi subforum. Thought it is Phaser. You can define animation for certain frames and then call it whenever you need it. Second parameter is an array with integers - frame numbers you want to playsprite.animations.add('walk', [1, 2, 3, 4], 10, false);sprite.animations.add('idle', [2, 3], 10, false);sprite.animations.play('walk'); Quote Link to comment Share on other sites More sharing options...
labrat.mobi Posted December 8, 2014 Share Posted December 8, 2014 You can have multiple movieclip for each animation and toggle visiblity when needed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.