Kacper Pietrzak Posted July 16, 2017 Share Posted July 16, 2017 Question is pretty straightforward, how can I apply multiple masks to one sprite. Let's say I have a sprite and I want it to be displayed only in particular places. In my case I want zombies to be visible only in light, having only flashlight it's pretty easy to implement since there is only one source of light and I can do something like that: this.zombies.setAll('mask', this.flashlightGraphics); But what do I do when I want to apply multiple masks, is there a way to combine graphics objects ? Thanks Link to comment Share on other sites More sharing options...
samme Posted July 21, 2017 Share Posted July 21, 2017 Each sprite can have only one mask. But each graphics object can have multiple shapes. Link to comment Share on other sites More sharing options...
Kacper Pietrzak Posted July 21, 2017 Author Share Posted July 21, 2017 Yeah, know that by know, thanks Link to comment Share on other sites More sharing options...
Fenopiù Posted March 29, 2018 Share Posted March 29, 2018 Same problem for multiple mask to a group (filled with sprites)? Link to comment Share on other sites More sharing options...
Recommended Posts