YoSniper
Member
Hello everyone!
I've been programming in Game Maker Studio for about a decade now, but when it comes to lighting effects, I tend to be at a loss. I am aware of certain features in GMS like "blend modes" and I understand the difference between bm_add and bm_normal. However, I am aware of the blend mode bm_subtract, also, but I've never understood how to use it. My gut tells me this is the way to go for what I want, but that's what I'm here to ask you about.
Let's say I want shadow to cover the entire view, like a black rectangle with alpha = 0.5. But I also want to have light sources like lampposts throughout the stage that cast beams of light down. Where those beams of light are, I want the shadow to disappear completely. So something overlapped by the beam of light is completely visible, as opposed to being halfway obscured by the shadow that otherwise encompasses the entire view.
Any help with this matter is appreciated.
I've been programming in Game Maker Studio for about a decade now, but when it comes to lighting effects, I tend to be at a loss. I am aware of certain features in GMS like "blend modes" and I understand the difference between bm_add and bm_normal. However, I am aware of the blend mode bm_subtract, also, but I've never understood how to use it. My gut tells me this is the way to go for what I want, but that's what I'm here to ask you about.
Let's say I want shadow to cover the entire view, like a black rectangle with alpha = 0.5. But I also want to have light sources like lampposts throughout the stage that cast beams of light down. Where those beams of light are, I want the shadow to disappear completely. So something overlapped by the beam of light is completely visible, as opposed to being halfway obscured by the shadow that otherwise encompasses the entire view.
Any help with this matter is appreciated.