Hey everyone,
I'm currently working on a submarine game and I'm troubling with blend modes/WebGL effects.
What I want to do is the following:
- A submarine in dark water (not black, more blueish)
- Submarine's light lights up the dark water and a bit of the submarine too
- Everything else which is not in the torchlight area should be not visible or very dark
(Let the details be my problem, I just want the general setup)
Kinda like this: https://goo.gl/UP3cRx
I figured I'd create a Sprite for the light, being a gradient going from white to transparent.
I tried every possible combination of blending modes, including the ones in the "effects" property.
I tried every possible Z order.
There must be a way, probably a very simple way, a combination of effects I missed.
Any help is greatly appreciated, thanks.
[EDIT]
I maybe found a way to do it. Maybe.
It just ignores colors of objects on the main layer...
Link to the capx: https://www.dropbox.com/s/4basmw18nzmcbb6/SubLight.capx?dl=1