Jul 28, 2024
main.gd
.ready()
: Executed when the node enters the scene tree.pass
with print("Hello World")
.Print
is different from print
.label.text = "Hello World"
to show it in-game.input(event)
function to handle actions.
if event.is_action_pressed("my_action")
to check the input.var variable_name = value
.var health = 100
.if
statements to control logic flow.if health <= 0:
print("You died.")
else:
print("You are healthy.")
#
to write comments in code.# This is a comment
func function_name():
.class_name Character