listen_retry.gd 310 B

123456789101112
  1. extends Node2D
  2. # Called when the node enters the scene tree for the first time.
  3. func _ready() -> void:
  4. $TextureRect.connect("gui_input", self, "on_input")
  5. pass # Replace with function body.
  6. func on_input(event: InputEvent):
  7. if event is InputEventMouseButton:
  8. get_tree().change_scene("res://MAIN.tscn")