Bite-Sized Godot: Setters and getters in GDScript using setget
Using setget, we can write custom logic to run when a variable is set or read.
Using setget, we can write custom logic to run when a variable is set or read.
While primarily used for Zelda-like dungeons, this technique can be used to generate custom worlds, branching dialog, and more.
While functions are not first-class objects in Godot, FuncRefs can help replace some of that missing functionality.
In this follow-up post, we’ll look at how we can take the theory we discussed previously and apply it to Godot.
State machines make it easy to manage the state of your objects and help you write cleaner, more maintainable, and easily expandable code.