Tool Scripts || Godot Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024
  • In this video, I go through the process of writing tool scripts in Godot, and talk about certain pitfalls that you may come across!
    Verdancy Vale Kickstarter: www.kickstarte...
    ~Links~
    Twitter: / thatfoxe
    Twitch: / thatfoxe
    Watch me play D&D: www.youtube.co....
    All music is from GameChops!: / gamechops
    #godot #godotengine #verdancyvale

ความคิดเห็น • 16

  • @ico-theredstonesurgeon4380
    @ico-theredstonesurgeon4380 2 ปีที่แล้ว +5

    Are you sure about what you say at 7:08? From my experience, setters and getters only work if the member is accessed from outside the class

    • @jacobfoxe4691
      @jacobfoxe4691  2 ปีที่แล้ว +1

      Just ran a test, and you're absolutely correct! HOWEVER, I did some digging and found a workaround: if you set your variable within code as "self.varName = newValue", the setter will run (and, conversely, getting self.varName will call the getter). I may make a quick video clearing this up!

  • @unfa00
    @unfa00 2 ปีที่แล้ว +12

    You got a nice voice crack in the first second of the video :D

  • @_gamma.
    @_gamma. 2 ปีที่แล้ว +4

    Didn’t know setgets got ran when you set the variable with an equals sign 😬 I’ll have to use them more often, it’s super helpful in tool scripts!
    Nice tutorial, I like that you explain what each thing means, nice to see the thought process.
    Have I introduced you to our lord and savior, TAU? I haven’t touched the _degrees variables or functions much since finding it 🙌

    • @jacobfoxe4691
      @jacobfoxe4691  2 ปีที่แล้ว +1

      Yep! Setgets are a great way to add some extra functionality setting variables outside of a func's scope. I was honestly surprised that it worked when doing assignments in code rather than just in the editor, but nope - Setgets override the _set and _get functions cleanly!
      Also, wow, that's a great tip about TAU! I usually end up setting constants to hold my prebaked radian/deg needs, but I'll have to start working TAU in as well! Thanks!!

  • @MexLuthor1970
    @MexLuthor1970 2 ปีที่แล้ว +4

    Thanks for making these Godot videos. Any chance you could lose the music in future?

    • @generrosity
      @generrosity 2 ปีที่แล้ว +1

      I think it's fine - and it's his channel to do with as he wishes

    • @averagegodotenjoyer
      @averagegodotenjoyer 2 ปีที่แล้ว

      I like it I do it in mine.

    • @unfa00
      @unfa00 2 ปีที่แล้ว +4

      @@generrosity Of course, but people sharing what they want lets creators adjust to better align to their community.
      I also prefer no music in tutorials. Helps me focus.

  • @unfa00
    @unfa00 2 ปีที่แล้ว +2

    I love your tutorials but I'm having a hard time focusing because of the background music :)

  • @luckyrowmax
    @luckyrowmax 2 หลายเดือนก่อน +1

    Hey fr🐔nds

  • @knerf999
    @knerf999 11 หลายเดือนก่อน

    Ah, finally

  • @HawkVisionGames
    @HawkVisionGames ปีที่แล้ว

    Could you re-make the tutorial for this on godot 4.0? Or if you could share the updated code to use the end results of this tutorial, that would also be great. thanks.

    • @jacobfoxe4691
      @jacobfoxe4691  ปีที่แล้ว +2

      A lot of it is still applicable for Godot 4.0, with the exception of setgets, which I'd love to cover in an upcoming tutorial! And yeah, I need to get better about posting my code!

  • @seanh2409
    @seanh2409 ปีที่แล้ว

    It feels like you're trying to rush through a lot of things, and are kind of making a lot of silly mistakes/saying things wrong. I'd highly recommend when you make a 4 version you take a step back and plan a little more, maybe do some editing before posting. I also agree that the music is distracting, could be lower and less "tingy" - not trying to be an arse, just trying to provide some constructive feedback.

    • @jacobfoxe4691
      @jacobfoxe4691  ปีที่แล้ว

      I appreciate the constructive criticism! Both are accurate points, and they're certainly issues that I focus on when planning out my next tutorials! It does make these earlier ones hard for me to watch though, but I appreciate the view and comment nonetheless! Cheers!