Description

🗨 GDQuest Discord Community : https://discord.gg/87NNb3Z▶︎ GODOT 4 COURSES : https://school.gdquest.com/godot-4-early-access Early Access Starting Jan 3…

My Notes

Signals Using Code 02:12

func _ready():
	# Subscribe to the pressed signal from the Button node
	%Button.pressed.connect(
	# define an anonymous lambda function
		func(): 
			%Character.visible = false # Hide the character when the signal is received
	)

Signals Using Editor 05:00

# if this function is connected to a signal then there will be
# a green arrow next to it on the left. 
func _on_body_exited(body):
	%AnimationPlayer.play("close")