Answers for "godot change var types"

2

godot declare variable return type

To declare the return type of a function, use -> <type>:

func heal(amount: int) -> void:
Posted by: Guest on December-26-2020
2

godot declare variable type

To declare a variable's type, use <variable>: <type>:

var health: int = 0
Posted by: Guest on December-26-2020

Browse Popular Code Answers by Language