mainmenu.gd 581 B

12345678910111213141516171819202122232425262728
  1. extends CanvasLayer
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. # Called when the node enters the scene tree for the first time.
  6. func _ready():
  7. get_tree().paused = true
  8. pass # Replace with function body.
  9. # Called every frame. 'delta' is the elapsed time since the previous frame.
  10. #func _process(delta):
  11. # pass
  12. func _on_Play_pressed():
  13. get_tree().paused = false
  14. for x in get_children():x.visible = false
  15. $play/BesourinhoUltra4k2/AnimationPlayer.stop()
  16. $play/BesourinhoUltra4k2/AnimationPlayer2.stop()
  17. pass # Replace with function body.