Real time 2D lighting - [Game Maker Studio 2 | Basics]

Real time 2D lighting - [Game Maker Studio 2 | Basics]

Channel:
Subscribers:
12,100
Published on ● Video Link: https://www.youtube.com/watch?v=0doV4ExOzdQ



Category:
Tutorial
Duration: 6:54
7,793 views
186


This basics video tutorial shows you how a real time 2d lighting can be done in GameMaker Studio.

Basically what you see in this video is that you have one object that checks if there is a obsticle in the way in form of tiles. That is being stored in the buffer to create a primitve. This is in the end only tons of little triangles in a list that fill up the screen to indicate that the origin can't see there.

A disclaimer: This si quite demanding for your game, so only use it sparingly when you really need it. I have seen and tested a version that checked for wall objects instead of tiles, This one was even worse in performance.


The whole project is based on those 2 yoyo offical blog posts, so if you like to see the full documention, here are the links:

https://www.yoyogames.com/blog/419/realtime-2d-lighting-in-gamemaker-studio-2-part-1
https://www.yoyogames.com/blog/420/realtime-2d-lighting-in-gamemaker-studio-2-part-2

// light system:
https://youtu.be/7GFggYDglmo


โ–ถ Gamemaker Studio: https://www.yoyogames.com/get

โ–ถ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations

๐ŸŽฎ My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls

๐Ÿ’“ My assets:
Get some assets at itch.io https://1up-indie2.itch.io/

๐Ÿ“œ Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/?referralCode=6AB816C3B321FB60C885

๐Ÿ‘‘ Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie


Follow me on:
๐Ÿ“ธ Instangram: https://www.instagram.com/1upindie
๐Ÿฆ Twitter: https://twitter.com/1upIndie
๐Ÿ’ฌ Discord: https://discord.gg/gvr98nb







Tags:
real time 2d lighting
gamemaker light system
gamemaker studio light system
gamemaker studio 2 light system
gamemaker 2d light
gamemaker studio 2d light
gamemaker studio 2 light
gamemaker light tutorial
gamemaker studio light tutorial
gamemaker studio 2 light tutorial
lighting
gamemaker lighting
gamemaker lighting system
gamemaker studio lighting
gamemaker studio 2 lighting tutorial