Guarana Posted August 1, 2016 Share Posted August 1, 2016 Hi, is there any type of container in phaser where I can define its width and height and then hide all overflow of it? I want to create a sprite slider which sits on a white rectangle. But currently all items that exceed the bounds of the rectangle are visible and I havent found a solution to hide them. I've seen the BitmapData alpha mask example but wont it have a huge impact on performance? And can I interact with sprites (Click, Drag) when they are part of BitmapData? Link to comment Share on other sites More sharing options...
stupot Posted August 1, 2016 Share Posted August 1, 2016 Just use a rectangular mask, look at this for the basic creation method: http://phaser.io/examples/v2/sprites/mask Link to comment Share on other sites More sharing options...
Recommended Posts