Jump to content

Applying multiple masks to single sprite


Kacper Pietrzak
 Share

Recommended Posts

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

  • 8 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...