Simple 2D Lighting - GameMaker Tutorial
"Hole punching" is an extremely popular trick to implement simple 2D lighting in GameMaker games. It only takes a few minutes to set up and all you need is a surface and some blend mode magic!
Example on Github:
https://github.com/DragoniteSpam-GameMaker-Tutorials/TutorialSimple2DLighting
Surfaces:
https://youtu.be/b53tKAzdHkA
The application surface:
https://youtu.be/-fk10vVZIeA
Blend modes:
https://youtu.be/PTL-eKVo7_4
GameMaker Studio 2.3 playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrfuDcYrTufdpgwoALAczPR2
GameMaker 3D playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrcML9uqHe4fwBVTm650Vy3V
0:00 Introduction
0:44 Project setup
1:49 Preliminary knowledge
2:59 Setting up the surfaces
4:39 The different Draw Events
6:08 Filling the lighting surfaces
8:58 Punching holes with bm_subtract
14:40 Fine-tuning the lighting effects
22:17 A bit of subtractive blending math
23:50 That's all
#GameMaker
#GameMakerLighting
#GameMakerBlendModes
- - - - -
I've now made that Patreon:
https://www.patreon.com/wizardragon
That promised social media link spam.
https://twitter.com/DragoniteSpam
Transition / idle music is by my old friend Kamex:
https://www.youtube.com/user/GreatGabite/about
Rate, comment, subscribe, watch more, enjoy!
Other Videos By DragoniteSpam
Other Statistics
The Game Maker - The 18th Carol Reed Mystery Statistics For DragoniteSpam
At this time, DragoniteSpam has 601,441 views for The Game Maker - The 18th Carol Reed Mystery spread across 394 videos. The game makes up over 5 days of published video on his channel, or 11.07% of the total watchable video for The Game Maker - The 18th Carol Reed Mystery on DragoniteSpam's YouTube channel.