Gamemaker studio 2 - Simple Lighting Technique

  Рет қаралды 13,217

North GameStudio

North GameStudio

Күн бұрын

Пікірлер: 38
@ajinkyax
@ajinkyax 21 күн бұрын
Even after so many years this is still an awesome tutorial on GameMaker lights
@offthebooksmusic
@offthebooksmusic Жыл бұрын
man thank you for this. i've been putting the finishing touches on my first game and i wanted to add a basic lighting system but didn't want to have to go back and change every bit of how things interacted for a more complex light system with shadows and whatnot.. this is perfect for what i want. simple but effective.
@SGTIvan921
@SGTIvan921 Жыл бұрын
Timestamps for reference: 1:29 Create the object oLighting (set the events and variables needed) ***ERROR FIX AT 12:31 timestamp below 4:15 What the glow effect looks 6:56 What will glow, and setup in the draw event 8:53 Add a variable "darkness" to oLighting to manage the darkness of the room. Set it to 0.5. 10:12 Demo 1 10:39 Darken the room (In the draw event of oLighting) 12:31 Fixing an error (surface_set_target(light_surf) and draw_clear(c_black) in draw event) 13:30 Demo 2 13:42 Subtracting from the darkness where the light is 15:08 Demo 3 15:59 Apply the glow for the shrine 16:54 Final Demo 18:05 Managing the darkness, Bonus Demo
@NorthGameStudio
@NorthGameStudio Жыл бұрын
nice! thanks!
@davidfuentesdabbah9023
@davidfuentesdabbah9023 27 күн бұрын
Amazing tutorial, thank you so much for this
@t1ww
@t1ww 3 жыл бұрын
at 4:06 can also be written as /// ! //work as a “not” term if !surface_exists(light_surf) { light_surf = surface_create(room_width, room_height); }
@misterr3083
@misterr3083 4 жыл бұрын
Excellent lighting tutorial! Thanks so much. Super useful.
@NorthGameStudio
@NorthGameStudio 4 жыл бұрын
Thanks!!! Glad you like it!
@DitheryStudios
@DitheryStudios 2 жыл бұрын
Thank you!! Just added a day night cycle, by having a time variable change the darkness, and making the alpha of the light be the darkness -0.5
@NorthGameStudio
@NorthGameStudio 2 жыл бұрын
Woah that is amazing!! Nice!
@J_o_6_9
@J_o_6_9 2 жыл бұрын
Hi my friend! can you make a tutorial on how to handle resolution and camera? your game looks very good and sharp
@wesleyaraujo5455
@wesleyaraujo5455 4 жыл бұрын
great material, congratulations, I don't like the variable definition window, but anyway, nothing to complain about, continue with your videos, Thank you
@NorthGameStudio
@NorthGameStudio 4 жыл бұрын
Thank you very much!
@bubilabop
@bubilabop 8 ай бұрын
You are King!!!,Thank you so much.
@Antided
@Antided 3 жыл бұрын
Thank you very much! This is exactly what I was looking for
@NorthGameStudio
@NorthGameStudio 3 жыл бұрын
Hope it helps!!! Thanks!
@e.maleki9927
@e.maleki9927 4 жыл бұрын
This is so cool! Can you please do a tutorial on manipulating the shape of the surface? Btw you got a sub and a like :)
@NorthGameStudio
@NorthGameStudio 4 жыл бұрын
Woah the shape? What do you mean?! 😮
@e.maleki9927
@e.maleki9927 4 жыл бұрын
@@NorthGameStudio I'm not that familiar with surfaces. Isn't there a way to change the shape of a surface?
@makeitsogames
@makeitsogames Жыл бұрын
thanks, this tutorial was very useful!
@generalkiki4662
@generalkiki4662 11 ай бұрын
you save me so much time thx a lot !!!
@ht-spreadlove2182
@ht-spreadlove2182 9 ай бұрын
Great video, thank you.
@siennas254
@siennas254 6 ай бұрын
I've got everything working in this just fine except for the blending where the shape of the light is subtracted from the dark surface. Doing this renders all things drawn below the light source to be completely enveloped in black, I assume their shape is being deleted as well. Unsure as to how I can have my light exist at a depth where it is properly affecting all the sprites I want it to without it also just erasing them if I add the subtraction.
@eik492
@eik492 2 жыл бұрын
Awesome tutorial dude! There is only one thing I cant figure out how to do with this system, if it is even possible ofcourse. Basically I want a lighting system like this in my game, but I want to make is so that things further away on the depth will have a lower amount of light displayed on them, and lets say for example the sky at the highest depth will not have any light on it at all. Do you know how I could make something like this?
@iamrm1011
@iamrm1011 2 жыл бұрын
how to make different layers unaffected by light
@FlowSwitchMusic
@FlowSwitchMusic Жыл бұрын
Put the depth of your lighting layer below the depth of the layer you don't want effected by it.
@spacepirate_
@spacepirate_ 6 ай бұрын
When minimizing the game or alt-tabbing, most of the screen goes black with only the glowing parts remaining. Has anyone else encountered this issue and knows how to fix it?
@TripleKenshi
@TripleKenshi Жыл бұрын
hey i need help my code isnt working eventho i copied youre code if (surface_exists(light_surf)) { surface_set_target(light_surf) draw_set_color(c_black) with (Player) { gpu_set_blendmode(bm_normal) draw_sprite_ext(sLight,0,x,y,1,1,0,c_white,0.5) } gpu_set_blendmode(bm_normal) surface_reset_target() draw_surface_ext(light_surf,0,0,1,1,0,c_white,1) "its 1 Because i thought darkness was the Prob" } else { light_surf = surface_create(room_width,room_height) } Edit:SOAB it was DRAW CLEAR BLACK
@masterjohn3126
@masterjohn3126 Жыл бұрын
This is one of the rare good gms2 tutorials, unfortunately still drawn out to 20 minutes
@NorthGameStudio
@NorthGameStudio Жыл бұрын
Thanks I appreciate that and I think you’re right, I need to make these shorter lol
@Borgello
@Borgello 2 жыл бұрын
what is sGlow? Y ou havent specified what I am supposed to do and now I am getting error, because small glow can not be found
@NorthGameStudio
@NorthGameStudio 2 жыл бұрын
Hey there. sGlow is the name I gave my sprite. You can name your sprite anything you like. Just make sure to replace sGlow with the name of your sprite. Hope that helps. 😬
@banish4cost
@banish4cost 3 жыл бұрын
some objects that use DRAW GUI no longer display their draw events after adding a surface. any help?
@NorthGameStudio
@NorthGameStudio 3 жыл бұрын
hhhmmm. you may want to include draw_self() at the very top of the draw events on objects that are not appearing.
@yungefendi6480
@yungefendi6480 3 жыл бұрын
where can i get this theme?
@NorthGameStudio
@NorthGameStudio 3 жыл бұрын
draculatheme.com/gamemaker-studio enjoy!
@yungefendi6480
@yungefendi6480 3 жыл бұрын
@@NorthGameStudio thanks man
@fierorecensione5828
@fierorecensione5828 Жыл бұрын
TOP!
GameMaker Devlog: Water Shader & Physics
21:30
Sara Spalding
Рет қаралды 114 М.
Sistema de Profundidade sem Utilizar Camadas | GMS2
21:03
Ponto e Vírgula
Рет қаралды 13 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Every 2D Node Explained in 9 Minutes !
9:19
Lukky
Рет қаралды 397 М.
Everything You Need To Start Making Games (As A Beginner)
16:11
Juniper Dev
Рет қаралды 172 М.
Simple Lighting System in GameMaker Studio 2
16:18
GameMaker Casts
Рет қаралды 21 М.
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 307 М.
How Do Game Devs NOT Overscope??
9:04
Green Light Dev
Рет қаралды 13 М.
GameMaker Studio 2 - Best Saving and Loading Tutorial (2.3.1+)
23:01
Why I am NOT Making These Enemies
17:06
Deynum Studio
Рет қаралды 217 М.
6 Years of Learning Game Development
17:20
Cobra Code
Рет қаралды 280 М.
I Coded a Nuclear Physics Simulator to Play God in VR
44:21
Thomas Wald
Рет қаралды 123 М.
The Best Games from GMTK Game Jam 2020
23:57
Game Maker's Toolkit
Рет қаралды 2,5 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН