Slide.gd 421 B

123456789101112131415161718192021
  1. class_name Slide
  2. extends Node2D
  3. # Display slide content
  4. signal finished
  5. # Called when the node enters the scene tree for the first time.
  6. func _ready():
  7. pass # Replace with function body.
  8. # Called every frame. 'delta' is the elapsed time since the previous frame.
  9. func _process(delta):
  10. pass
  11. func _unhandled_key_input(event: InputEvent):
  12. if event.is_action("ui_accept") and event.is_pressed():
  13. finished.emit()