Using Line2D nodes to create physics bodies in Godot
Combining the Line2D node with the Geometry class, we can let players draw their own physics objects in a game.
Combining the Line2D node with the Geometry class, we can let players draw their own physics objects in a game.
Let’s take a moment to look at some small, but helpful, tips for working with GDScript.
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.