brdmg Posted September 20, 2016 Share Posted September 20, 2016 Is there a way to position every frame with different positions in MovieClip in case where frames are different sizes. As much as I explored, I couldn't find a way, because frames created with new PIXI.Rectangle have only x,y (which is frame position on spritesheet) and width and height. Quote Link to comment Share on other sites More sharing options...
xerver Posted September 20, 2016 Share Posted September 20, 2016 You can change the anchor each frame. Quote Link to comment Share on other sites More sharing options...
brdmg Posted September 20, 2016 Author Share Posted September 20, 2016 But how can i control that if i use somemovieclip.play() Quote Link to comment Share on other sites More sharing options...
xerver Posted September 20, 2016 Share Posted September 20, 2016 Best is to wait for this: https://github.com/pixijs/pixi.js/issues/2947 Currently you can override the update method and look for texture changes. brdmg 1 Quote Link to comment Share on other sites More sharing options...
brdmg Posted September 20, 2016 Author Share Posted September 20, 2016 can you suggest me best alternative for movieclip to use it until releasing onUpdate. I dont know actually whether MovieClip is best way for creating animations. Quote Link to comment Share on other sites More sharing options...
xerver Posted September 20, 2016 Share Posted September 20, 2016 MovieClip is fine for taking an array of textures and playing through them like a flipbook. Anything more complex than that and you are better off implementing your own. MovieClip is very simple. 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.