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
  • Наука та технологія

КОМЕНТАРІ • 21

  • @KlausWulfenbach
    @KlausWulfenbach Рік тому +9

    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!"

  • @Katrinaaster
    @Katrinaaster 11 місяців тому

    I WAS LOOKING EVERYWHERE FOR THIS THANK YOU!!!

  • @pepsipwns666
    @pepsipwns666 3 місяці тому

    Amazing just what I needed.

  • @capuchinosofia4771
    @capuchinosofia4771 6 місяців тому

    quick, simple and to the point, 10/10!

  • @shuba5173
    @shuba5173 2 роки тому +2

    i like your godot layout. I'll use it. nice video

  • @realMenta
    @realMenta 2 роки тому +3

    Nice tip, thanks!!

  • @rohan751
    @rohan751 Рік тому +5

    Any advice on how to make a custom polygon mask?

  • @n4rzul
    @n4rzul 11 місяців тому

    Wow. Practical useful information in under a minute. Can I have some more please? Subbed.

  • @kikurilover
    @kikurilover 4 місяці тому

    thanks!

  • @thomrade
    @thomrade 2 роки тому +4

    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

    • @FirebelleyGames
      @FirebelleyGames  2 роки тому +1

      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!

    • @latbat58
      @latbat58 Рік тому +1

      maybe try making a really performance heavy particle and clipping it with this

  • @rendcycle
    @rendcycle Рік тому +2

    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.🙂

    • @FirebelleyGames
      @FirebelleyGames  Рік тому

      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 :/

    • @rendcycle
      @rendcycle Рік тому

      @@FirebelleyGames I understand. Good luck to your game Gunforged! 🙂

  • @kunai9809
    @kunai9809 Рік тому +1

    wow... was using complecated light2d which was messing things up, this is like SO MUCH easier...

  • @ylvatheace812
    @ylvatheace812 5 днів тому

    is there a way to do the inverse? so the particles only show outside the mask?

  • @MrBreakthompson
    @MrBreakthompson Рік тому +2

    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?

    • @FirebelleyGames
      @FirebelleyGames  Рік тому

      Probably a bug or some other limitation of this method if I had to guess

  • @EthernalOynuyor
    @EthernalOynuyor 7 місяців тому

    How can i do it as a circle?

  • @2NerdyNerds
    @2NerdyNerds 5 місяців тому