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
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
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!
You got a nice voice crack in the first second of the video :D
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 🙌
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!!
Thanks for making these Godot videos. Any chance you could lose the music in future?
I think it's fine - and it's his channel to do with as he wishes
I like it I do it in mine.
@@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.
I love your tutorials but I'm having a hard time focusing because of the background music :)
Hey fr🐔nds
Ah, finally
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.
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!
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.
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!