cop_timer.gd 340 B

123456789101112131415
  1. extends Label
  2. var started = false
  3. func start():
  4. visible = true
  5. $Timer.start()
  6. started = true
  7. func _process(_delta):
  8. if $Timer.time_left > 0 and started:
  9. text = str(int($Timer.time_left)) + " seconds till the popo bust yo ass"
  10. elif started:
  11. text = "its joever lil bro"
  12. GameManager.goto_scene("res://Scenes/freddy.tscn", false)