how can i develop my gdscript writting as a new developer

Godot Version

the newest version

Question

i just started using godot i have 0 experience in gd script but i know the ui baics i want to know whats the best way to develop gd script writing if i dont know anything ive been trying to write my own code for 3 weeks and still fail how can i progress and understand how to write and turn ideas into prototypesi also want to understand physics related to coding.

This is not a Godot version. Put yourself in the shoe of someone who tries to find an answer in the future and comes across your post. “the newest version” will tell them absolutely nothing if the post is 2 or 3 years old.

Aside from that, since we didn’t really get a lot of information from you, I will assume you haven’t done these two guides, so I recommend starting here:

Once you’ve done that, learn how to use the documentation. Try to change small things in the projects, such as the speed of something, try to make something else happen like a sound playing somewhere, or something changing color when X thing happens etc…

Don’t try to memorize things, even really good programmers do not memorize everything. Instead, learn how to LOOK for answers, and how to break down complex problems you try to solve.

As a new Godot user myself, I cannot agree more that documentation is king.

Don’t know what a function takes? Documentation. Not sure the difference between _physics_process() and _ready()? Documentation. No one’s above it, and for good reason. Don’t try to brute force your way into it.

If you’re also new to programming, Harvard has a free CS50 course. I started from there when I was a beginner and after the 3rd lesson, felt ready and jumped to doing whatever I felt like doing at Godot.

Watching tutorials on youtube for the things I wanted to create, and reading the documentation for the nodes and classes I was using helped me get the ropes.

So the documentation and the tutorials are your best source for getting exposed to all the classes, functions and nodes you need to create what you want. The rest is problem solving. Wish you the best luck, and in time, the engine and GDScript will become second nature to you and you’ll be solving problems without any friction. Also we’re here to help for any problem you’re struggling to solve.

Edit: Also another tip. Make sure you always print out the values or use an add-on like DebugDraw for debugging as you code. There have been so many incidents where I calculated a value wrong, did wrong calculations, or mixed up signs etc and a simple print() would have helped me catch it had I been validating my values as I coded when I was a beginner. Always double-check your variables and functions via print() after you wrote a function. It’ll save you many headaches.