stasuss Posted May 14, 2014 Share Posted May 14, 2014 crop() method does not work. But I need to modify the dimension of the animated sprite. How can I do this? Looked through PIXI docs, but have not found anything useful too. Link to comment Share on other sites More sharing options...
stasuss Posted May 15, 2014 Author Share Posted May 15, 2014 bump? Link to comment Share on other sites More sharing options...
stasuss Posted May 15, 2014 Author Share Posted May 15, 2014 I will answer to myself PIXI supports masking on the DisplayObjectContainer which is used as the parent of the Phaser's Groups. So I've added my animated sprite to the separate group, created the Phaser.Graphics, draw rect onto it and applied it as a mask to the group. Sprite is cropped and keeps animation running. Link to comment Share on other sites More sharing options...
Recommended Posts