@export var <variableName> = 400 - makes the variable accessible via the editor
@onready var <variableName> = $World/Camera2D - initialzie variable upon script load
#that's how you specify return type
func do_something() -> void:
pass
#that's how you specify if it's int, bool or whatever
var movementSpeed : float = 1.5
4
Комментарии
Твой комментарий
limezu.itch.io/moderninteriors
leohpaz.itch.io/minifantasy-dungeon-sfx-pack
brackeysgames.itch.io/brackeys-platformer-bundle
characters
despairparty.itch.io/rpgmaker-spriteface
docs.godotengine.org/en/4.3/classes/class_mainloop.html