Lighting can be a really complicated thing, especially if your looking for shader based lighting. I think typically there are 2 types of lighting, static lights that don't emit shadows, and dynamic lights which cast a shadow. You could use shaders for static lights I'm sure, but you could also do it with a simple gradient mask and a blendmode. A lot of the lighting shaders in the market will come with a static and a dynamic shader and let you choose the one you want. My suggestion, either find an existing system that you like from here:
marketplace.yoyogames.com
Or, you can follow one of these tutorials and try adapting it for what you want
YoYo Games is the home of GameMaker. The easy to use powerful game engine that is the best for 2D games. Making games is for everyone.
www.yoyogames.com
YoYo Games is the home of GameMaker. The easy to use powerful game engine that is the best for 2D games. Making games is for everyone.
www.yoyogames.com
YoYo Games is the home of GameMaker. The easy to use powerful game engine that is the best for 2D games. Making games is for everyone.
www.yoyogames.com
If you've been using GameMaker Studio 2 for any length of time, you will almost certainly have come across blend modes, and probably even used them in your g...
www.yoyogames.com
In a previous article that we published on blend modes, we covered the simple blend modes that you can use in your games, and gave a basic overview of h...
www.yoyogames.com
Best of luck