Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've had success with using VS Code for editing GDScript files, instead of using the built-in editor for Godot.

When I started using Git to track my Godot projects, I realized that all the scene files (.tscn) are just text files, and the Godot editor is a GUI for editing these text files. Scene files just store data: relationships between nodes and properties on each node. After this relevation, the whole system started to "click" for me and I started treating Godot game projects just like any other web app or mobile app that I work on.



I think your comment made the engine click for me too, wow, thank you.

Do you know if there's a way to see the main update function? I have a hard time understanding what order the engine uses to runs each script.


I think you're looking for documentation on the SceneTree and "tree order". it really is a beautiful architecture when you dig into this and internalize it

https://docs.godotengine.org/en/stable/tutorials/scripting/s...

https://docs.godotengine.org/en/stable/classes/class_scenetr...

https://docs.godotengine.org/en/stable/classes/class_mainloo...


I'm sorry for making you go through all that, should have looked into the documention before asking. Thank you.

Godot really is the only game making software that has this artful feeling of beauty. Portable, always consistent, small. I usually give up on software in favor of frameworks because I don't know what's happening and the documentation is too daunting compared to just making my own thing but reading how godot's made is an exception.


oh, it was a quick Google from memory because I've gone down the same path myself :)


There's always the source :) It's easier to follow if you git clone and open it in vscode. Here's Main::iteration - https://github.com/godotengine/godot/blob/e0f644a48da49843ad...


It's so understandable and succinct, I don't know why I thought I wouldn't understand the source. Thanks.


Unity is the same way (by default, scene and other files are stored on disk in a binary format, but you can toggle a project setting to make them text instead—which is a big help if you're using git).


Could you elaborate ? Does this require any specific setup?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: