cubiq Posted January 25, 2014 Share Posted January 25, 2014 this must be the silliest of the questions but I just started working with Phaser and I'm still trying to get in the mood (impressive library BTW!). while I was able crop sprites I don't seem to succeed at setting a clipping area for groups. Is that even possible? Basically I'd like to crop everything outside of a group boundaries (or any rectangular area). Link to comment Share on other sites More sharing options...
XekeDeath Posted January 25, 2014 Share Posted January 25, 2014 Groups don't have that ability, they are essentially containers with some really helpful functions. Link to comment Share on other sites More sharing options...
cubiq Posted January 25, 2014 Author Share Posted January 25, 2014 thanks for your reply is it possible to create masking/clipping in any other way? basically the equivalent of pixi's "sprite.mask" ( http://www.goodboydigital.com/pixi-js-brings-canvas-and-webgl-masking/ ) the alternative would be to play with alpha channels and z order Link to comment Share on other sites More sharing options...
rich Posted January 25, 2014 Share Posted January 25, 2014 You can use Pixi masks in Phaser, anything Pixi has available is there to be used (in the same way) too. Link to comment Share on other sites More sharing options...
cubiq Posted January 26, 2014 Author Share Posted January 26, 2014 that makes sense. thanks I've also found this http://www.html5gamedevs.com/topic/1444-how-to-use-pixi-masking-in-phaser/ sorry for the duplicate. Link to comment Share on other sites More sharing options...
Recommended Posts