Godot Foundations
Signals and communication
Signals allow a node to announce events. Other nodes can react without the sender needing to know who is listening.
gdscript
signal health_changed(value)
func take_damage(amount):
health -= amount
health_changed.emit(health)Lesson complete?Use the next lesson to continue the learning path.