 let's add some basic to the light to a very simple game that we have this game was created only using visual script and you can move a character around the screen but there's nothing else happening actually the trees are not even there you can go over them because it's only a background but it's gonna be enough for us to demonstrate this simple example to start adding lights and shadows I will first add a light to the kinematic body that we have here this is our character let's add a shadow and it's going to be a light 2d now that we have the light 2d we need to add a texture to it without a texture the light is not gonna be happening to make a texture for a light you can use any image where the white is going to be the light and transparent is going to be the darkness so in this example you have like this kind of effect I will provide a link to download this sprite that I'm using right now in the description but I already imported it into the project and I have it here so let's open the light 2d node and let's drag and drop the texture you can see the size of it here let's add it here on the light and as soon as I do that you see that the image already gets brighter around where it is so we have that working right now the next thing you want to do is enabling shadows so whenever you open this section you can click here on enable and that's pretty much it you can now add a new node which is going to be a light occluder 2d this is everything that will block the light and create a shadow so let's build one here so you can see there are new options here at the top of the editor this means that we need to create a vector we have a warning here which is like you need a polygon first you can draw it which is going to be the occluder let's do one for this tree let's say I'm gonna start clicking it will ask me no polygon resource do you want to create one yes let's create one so I start clicking here now here and here okay and I click it again to finish it so now I have this polygon that I can modify anytime and as you can see on the editor I already see like a shadow so this is going to be the part that will create a shadow from the tree so if you see here I can move the character in the editor and I already see the shadow being drawn on this scene I can move it away and you see that the spread is going further and further and the the scene doesn't have any shadow or anything but now that I'm moving it closer you can see it again and I can move it so I'm going to apply the same to all the trees and I can do so by just clicking here and duplicating with ctrl d and I can set the shadow to the rest of the trees like so okay and now let's create an eye one movie for this entire house part let's create a new one like the cd clicking create one and now I will do something like this let's see just a block okay so that's gonna be for the house okay so now if I run the game you can see that all the trees emit a shadow and if I move the character around it's going to be casting the shadow on the obtutors also for the house like if I'm behind the house like I cannot see anything in front of it like any light and if I move in front of it you will so that's a very simple way of adding 2d lights and shadows you can play around with it there's a lot of extra options that you can touch here on the light you can change the color of it maybe you want some red you know and or maybe like a green doesn't matter you can also play with the occluders and maybe the last things that you want to know is that this light here you have the item cool mask this is a layer where the light is going to be displayed so if you want some lights to be blocked by some elements and some other is not here if you see in the light occluder we have the light mask this is the same layer as the light so if I remove it I don't see it because it's not on the same layer this will work if you want to add multiple lights and you want those lights to be casting different shadows in different characters but I will let you play with that if you want that's it for today and I hope you like this small tutorial I would really like to thank my patreons and if you want to help me making more of these videos you can visit my patreon here and yeah see you next time