Constants in GDScript
Constants are values that cannot be changed once declared. In this example, we’ll see how to work with constants in GDScript.
To run the program, save the code in a .gd
file, and add it to a node in your Godot project.
Here’s the output you can expect:
Now that we can work with constants in GDScript, let’s learn more about the language.