Simple 2D Lighting - GameMaker Tutorial

Опубликовано: 06 Октябрь 2024
на канале: DragoniteSpam
7,317
249

"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-Game...

Surfaces:
   • Introduction to Surfaces - GameMaker ...  
The application surface:
   • The Application Surface - Advanced Dr...  
Blend modes:
   • Blend Modes - Simple Visual Effects i...  

GameMaker Studio 2.3 playlist:
   • GameMaker: New & Beta Features  
GameMaker 3D playlist:
   • 3D in Game Maker Studio 2  

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:
  / wizardragon  
That promised social media link spam.
  / dragonitespam  
Transition / idle music is by my old friend Kamex:
   / greatgabite  

Rate, comment, subscribe, watch more, enjoy!