I have a basic level set up and some areas are darker. These areas are on a layer called "shadows" on top of my main background layer where all shadow sprites are placed. On top of that are objects, player, etc. I wan't my character to get darker as well when stepping on those shadow sprites or shaded areas.
What would be the best way to go about doing that?
Using collisions or have this layer act as some kind of mask?
Preferably a mask would be better to have the character gradually change color, based on the grayscale images in the shadow layer. Since the shadows can have have different intensity. Completely black or anywhere in between.
I guess WebGL effects are the way to go, but i havn't figured out how i would go about doing the effect I'm after.