No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

instructionsUI.gd 502B

12345678910111213141516171819202122232425262728293031323334
  1. extends Control
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. var jumped = false
  6. func _wait_for_jump():
  7. var t = Timer.new()
  8. t.set_wait_time(0.5)
  9. add_child(t)
  10. t.start()
  11. while(!jumped):
  12. yield(t, "timeout")
  13. if visible:
  14. hide()
  15. else:
  16. show()
  17. hide()
  18. func _input(event):
  19. if event.is_action_pressed("ui_accept"):
  20. jumped = true
  21. # Called when the node enters the scene tree for the first time.
  22. func _ready():
  23. hide()
  24. func _init():
  25. show()
  26. _wait_for_jump()