How to use enums in the Godot Engine

This Godot Engine tutorial explains how to create enums, compare enum values, get enum items and their names and how to format them. What are enums? Enum is short for “enumeration”. Enums are often used for selecting something from a list, where every item is mutually exclusive. Some examples: CharacterClass (Fighter, Rogue, Mage) Time of […]

Godot Engine – How to get the class name of a custom class

If you have ever created custom classes by using class_name MyCustomClass in one of your scripts you might have noticed that these classes don’t return their custom class name when you use get_class() or is_class() on them. This tutorial will show you how to fix this. Let’s say you have a Player.gd script that inherits […]

Scroll to top