Godot Quick Tip: Mask a Rectangular Area
Вставка
- Опубліковано 20 чер 2022
- Learn Godot with my Udemy course: www.udemy.com/course/create-a...
Support me by picking up one of my games on Steam!
store.steampowered.com/search...
Purchase Sword Slinger: store.steampowered.com/app/13...
firebelley.itch.io/sword-slinger
Follow me on Twitter! / firebelley
Steam - store.steampowered.com/search...
Itch.io - firebelley.itch.io/
Website - firebelley.com
#Godot #GameDev - Наука та технологія
Me: "Oh man, what's the GDScript code for this going to be?"
Firebelly Games: "Just click this checkbox and you're good to go!"
I WAS LOOKING EVERYWHERE FOR THIS THANK YOU!!!
Amazing just what I needed.
quick, simple and to the point, 10/10!
i like your godot layout. I'll use it. nice video
Nice tip, thanks!!
Any advice on how to make a custom polygon mask?
Wow. Practical useful information in under a minute. Can I have some more please? Subbed.
thanks!
Great tip! Does this improve performance as well since it's not rendering outside the rect? Or does Godot handle that already if stuff is outside the camera
I'm afraid I don't know the answer to that question, my hunch would be that the particle system is still being rendered and processed but just masked, so no performance benefit. This is not the same as culling in 3D. But again, that is my hunch I could definitely be wrong about this!
maybe try making a really performance heavy particle and clipping it with this
Thanks for this! I bought your Godot 4 Survivors course. Hoping in the future, you'll have a tutorial on how to Export to Android/Mobile as I can't seem to find anything clear online yet for Godot 4. Anyhow, are you still going to update your 2D platformer course in Udemy to Godot 4? I'm also interested in that course.🙂
I don't have any plans at the moment to update the platformer course. I would like to but I simply don't have time :/
@@FirebelleyGames I understand. Good luck to your game Gunforged! 🙂
wow... was using complecated light2d which was messing things up, this is like SO MUCH easier...
is there a way to do the inverse? so the particles only show outside the mask?
Great! However, after moving away from the rectangle in the 2d world at some point the mask unclips itself. Any idea? Or is this a bug?
Probably a bug or some other limitation of this method if I had to guess
How can i do it as a circle?