Thanks so much for this, especially for having it be so concise. I REALLY was trying to figure out how to make players in shadow not appear until they’re on light like in Among Us, and the “light only” thing solved my problems. Thanks so much 👍
Very nice !!!! thanks you for this. it's quick, goes to the essentiel and works !!! I had check other tutorials but stills I learned stuff here ! I love you games but they forces me to find other ideas ahah
@@RafaFiedo Bro I just thought of something cool (Infinity) and you know our 5 senses...combining them is something cool...Thanks for asking ! I hope you liked it...
Hey man love your vids, can you do a tutorial on json and how to save the levels that you play, so when you hit continue in the menu, you change the scene to where you left off? thanks :}
Ah, I had the same problem in my "Dungeon Rescuer" game,. The solution would be level design. I solved this by achieving a situation where all occluders were connected with collision shapes (everything in auto title) so the player or just light source can't go inside the occluder. Unfortunately, I don't know a better solution.
Hm... I have already recorded a few videos for the platform game like collisions, gravity. Are you interested on specific subject? About full platform game it would be a veeery long video ;)
it's something similar to method I presented. For example you can add new light2d and range/item cull mask to another layer and in the light2d mode get "sub". Now in your sprite take material/canvasmaterials/ light mode - light only and ofcourse in visibility change light mask to same mask as second light and it's should work. You need only to experiment with the textures ;)
@@RafaFiedo right now I haven't tried running your project but I will try it now, I was following your steps and there is no error message just when I enable the shadows and run the scene everything that moves near the light 2d object starts glitching and when I don't enable shadows everything is fine except I don't get shadows. And I am using GLES2 cos my pc is kinda old. Are you on Instagram ? I can send the video to you..
Let me know if this project is working. Just to be sure that the shadows itself is a problem. ps. don't have instagram, but you can catch me on discord ;)
@@RafaFiedo it's happening in your project too but inside your tilemap it's good and outside it happens again..Shall I send you the video on your discord?
hard to say, because there can be a lot of reasons. Could you download my project and just compare it with your project? github.com/rfiedorowicz/godot_light2d_tutorial
@@RafaFiedo Okay, the issue is I am adding a scene because it is an enemy and not a sprite. Do you happen to have a tutorial on how to do the same thing but with a scene rather than a sprite?
@@RafaFiedo For what it's worth, I fixed it by just making the sprite the parent node of my kinematic body. I don't know if that'll cause issues down the line but it works!
@@RafaFiedo As it turns out, when trying to add more logic to the enemy it breaks because you can't call functions like is_on_wall from a sprite but the script also can't extend from the kinematic body. So I can only get stationary enemies with this setup. So I am lost again.
Source code ;)
github.com/rfiedorowicz/godot_light2d_tutorial
I am going to submarine.
I've done other tutorials on 2D lighting in Godot, but in just over three minutes you showed me a couple things I didn't know. Nice job!
Your welcome :D I'm glad that tutorial was helpful!
Thanks so much for this, especially for having it be so concise. I REALLY was trying to figure out how to make players in shadow not appear until they’re on light like in Among Us, and the “light only” thing solved my problems. Thanks so much 👍
oh yea, I remember that I spend a lot of time to get this effect :D
I'm glad that this video helped!
Very nice !!!! thanks you for this. it's quick, goes to the essentiel and works !!! I had check other tutorials but stills I learned stuff here ! I love you games but they forces me to find other ideas ahah
Thank you! You can always write propositions of tutorials if you will not find what you are searching for ;)
@@RafaFiedo I would be quite curious to know a bit more about Shaders and when to use them and why ?? Do you have any idea and that topic ?
It's great because I have plans to record a tutorial on how to start the adventure with 2d shaders ;)
@@RafaFiedo Great !!! Thank you for all your time spending for sharing your gamedev knowledge :)
Oh thanks, I was wandering how to make sun that's shining behind trees, very useful and short tutorial.
You're welcome Cəfər! :D
Super awesome video! I'm really loving you channel! Keep up the awesome work! PLEASE!
Thanks!
@@RafaFiedo Particle FX! Various shaders!
@@matteoezrasmith noted!
Enemy AI and melee combat is something I look up a lot too.
underrated channel. such great tutorial in just 3 minutes. Thank you kind sir. This channel will grow soon enough
Thanks! I'm glad that you like it :)
Your game was beautiful when I tried it. Thank you for short tutorials!
You're welcome! New game is also in production ;)
Keep up the good work. Love your videos about godot
Thanks! More is on the way ;)
Perfect! Just what I needed for my level!
Glad that tutorial helped!
This title is my motto
This tutorial was really good thanks :D Everything I needed!
No problem! The Next tutorial is on preperations :D
Ill remember this :D
Good to know:D
Thank you, very helpfull:D
Glad it helped!
Man you are tallented
Thanks :D
You have really nice tutorial 😎
I subscribed you !!!
Keep it up 😉
Thanks for the sub "Infinity Senses"!
Nice account name. What's the story of it?
@@RafaFiedo Bro I just thought of something cool (Infinity) and you know our 5 senses...combining them is something cool...Thanks for asking ! I hope you liked it...
That remains me of the "captain planet" :D
thanks for answer, have a nice day!
@@RafaFiedo ☺️
Bro I have a request please make a tutorial on dialogue system in Godot ( Like player talking to some other person )
I hope you will think about it...
Great joke with yellow submarine :P
More is coming in :D
GREAT VIDEO!!
Thanks! :D
actually what i wanted to look my game cool
I'm glad that it helped :D
Hey man love your vids, can you do a tutorial on json and how to save the levels that you play, so when you hit continue in the menu, you change the scene to where you left off? thanks :}
Thanks man! Great ideas for short tutorials! I will add these ideas to my "near future tutorials" board ;)
@@RafaFiedo that would be awesome man, thanks :)
When I collide with something in a top-down game, the polygon on the occluder lights up instead of giving it a shadow. How to fix this?
Ah, I had the same problem in my "Dungeon Rescuer" game,. The solution would be level design.
I solved this by achieving a situation where all occluders were connected with collision shapes (everything in auto title) so the player or just light source can't go inside the occluder.
Unfortunately, I don't know a better solution.
could you make a platformer tutorial
Hm... I have already recorded a few videos for the platform game like collisions, gravity.
Are you interested on specific subject? About full platform game it would be a veeery long video ;)
is there a way to do this in 3d and godot4? I really cant seem to figure it out
I have never tried this method on 3d ;/
Hello! Why this method dont work now in Godot 4 ?
How to hide things when exposed to light
it's something similar to method I presented. For example you can add new light2d and range/item cull mask to another layer and in the light2d mode get "sub".
Now in your sprite take material/canvasmaterials/ light mode - light only and ofcourse in visibility change light mask to same mask as second light
and it's should work. You need only to experiment with the textures ;)
I have got a problem when I am enabling shadows and play, the screen glitches like the Microsoft error meme! What should I do ?
What is the message on this errors?
Have you tried run my project from the github?
github.com/rfiedorowicz/godot_light2d_tutorial
@@RafaFiedo right now I haven't tried running your project but I will try it now, I was following your steps and there is no error message just when I enable the shadows and run the scene everything that moves near the light 2d object starts glitching and when I don't enable shadows everything is fine except I don't get shadows. And I am using GLES2 cos my pc is kinda old. Are you on Instagram ? I can send the video to you..
Let me know if this project is working. Just to be sure that the shadows itself is a problem.
ps. don't have instagram, but you can catch me on discord ;)
@@RafaFiedo it's happening in your project too but inside your tilemap it's good and outside it happens again..Shall I send you the video on your discord?
yea sure, if you could do this.
I'm curious to see it.
Unfortunately I'm afraid that issue is beyond my knowledge, but let me see it first ;)
My enemy characters aren't hidden when I choose "Light Only", any advice?
hard to say, because there can be a lot of reasons.
Could you download my project and just compare it with your project?
github.com/rfiedorowicz/godot_light2d_tutorial
@@RafaFiedo Okay, the issue is I am adding a scene because it is an enemy and not a sprite. Do you happen to have a tutorial on how to do the same thing but with a scene rather than a sprite?
@@RafaFiedo For what it's worth, I fixed it by just making the sprite the parent node of my kinematic body. I don't know if that'll cause issues down the line but it works!
@@ragreenburg I am glad that you handled it! If you will have more questions let me know here or on the discord ;)
@@RafaFiedo As it turns out, when trying to add more logic to the enemy it breaks because you can't call functions like is_on_wall from a sprite but the script also can't extend from the kinematic body. So I can only get stationary enemies with this setup. So I am lost again.