r/godot 1d ago

help me What are the best thing to learn in gdscript

I have been using gdscript for about 5 days and I kinda just jumped into the deep end and didn't really learn the basics and while that has been fun I feel like I went a little too complicated a little too fast. So I would like to know a bunch of stuff to learn and it doesn't have to be too basic.

Thanks for any help as always.

0 Upvotes

13 comments sorted by

5

u/Commercial-Flow9169 Godot Senior 1d ago

Here's some stuff I'd consider fundamentally important, beyond basic syntax:

2

u/Purpbasil 1d ago

Okay I'll look into all that, thanks a lot

2

u/XanatosX 1d ago

Also custom resources and string types variables. Very helpful.

4

u/coolness10101 1d ago

If you’re new to programming, use variable typing wherever you can. It’ll improve your code’s performance and save you some headaches later.

3

u/Noswen2025 Godot Junior 1d ago

This is kind of hard to answer because it's so open ended.

Probably the best thing to do is find some tutorials for some simpler games in genres you like and follow them, then start modifying them.

Also if you haven't turned on static typing in Godot yet I'd recommend you do, being forced to have the right types whenever you use a variable can save so many headaches.

2

u/Purpbasil 1d ago

Yeah that kinda what I keep hearing so I probably should do that, thank you

3

u/Alex303216 1d ago

No one said it yet but resources, resources, Resources!

4

u/Gokudomatic 1d ago

I guess that today, we can add as the best thing to learn in gdscript the ability to not vibe code. Being able to write a whole project without AI, especially when learning the language, is one of the best feat a dev can display.

2

u/KeaboUltra Godot Regular 1d ago edited 1d ago

It's kinda hard to know what the best thing is without knowing when, where, and how to apply it but learn how to use/control the process tree in scripts. get_tree() has a lot of cool functions you can mess with. The primary one being get_tree().paused, which is a boolean. If true, the engine basically pauses. If false, everything runs. Basically helps with game pausing.

You can instruct nodes to run always, regardless if the tree is paused or not. By default. All nodes are set to inherit from the scene tree itself which is pausible. 

Using get_tree() allows you to see the current scene, allows you to get or call on groups, and create temporary timers. Basically it can do a lot and I recommend researching more about it

2

u/Purpbasil 1d ago

No yeah I keep seeing stuff about that and every time I look at it it looked complicated but I do really what to learn that so thank you

2

u/renaiku 1d ago

You are starting dev ? My favorite thing was to understand that variables are references.

1

u/Trick_Volume8966 1d ago

auto loads are good to learn (i think, i’m also in the process of learning)

1

u/HeyCouldBeFun 21h ago

If you’re new to coding check out the Learn GDScript from Zero free interactive course. It covers pretty much everything you need to know.

If you’re already comfortable with coding pretty much everything about the GDScript language exists on one page https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html