1 2 3 4 5 6 7 8 9 10 11
extends Node2D onready var pause_menu = $PauseMenu # Called when the node enters the scene tree for the first time. func _ready(): $Control/TextReveal.start() $healthbar.set_health(2) func _on_MenuButton_on_click(): pause_menu.pause()