Search the Community
Showing results for tags 'display object'.
-
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
- 3 replies
-
- mask
- display object
-
(and 2 more)
Tagged with:
-
Looks like 'removed' event is not propagating to it's children (and it probably shouldn't). But is there a way to know if the object was removed from the rendering graph (e.g. it's parent (parent's parent (parent's parent's parent (...))) was removed from it's.. parent without recursive checking? I hope what I just wrote makes sense..