Advertisement
otorp2

basic timer

Oct 19th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. extends Node2D
  2.  
  3. var timer=0
  4. var time_limit = 3.0
  5.  
  6. func _process(delta):
  7. if timer >= time_limit:
  8. print("Hello World")
  9. timer = 0
  10. else:
  11. timer += delta
  12.  
  13. func _ready():
  14. set_process(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement