godot add var to type code example Example: godot declare variable type To declare a variable's type, use <variable>: <type>: var health: int = 0