intro.gd 442 B

12345678910111213141516
  1. extends Control
  2. func _process(delta):
  3. if (Input.is_action_pressed("ui_accept")):
  4. change_scenes("res://Scenes/levels/level_1.xscn")
  5. if (get_node("video").get_stream() == null):
  6. change_scenes("res://Scenes/levels/level_1.xscn")
  7. func _ready():
  8. get_node("video").set_stream(null)
  9. get_node("video").play()
  10. set_process(true)
  11. func change_scenes(next_scene):
  12. get_node("/root/global").goto_scene(next_scene)