Advertisement
otorp2

timer built with code

Nov 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. extends Node2D
  2.  
  3.  
  4.  
  5. func _ready():
  6. var getroot = get_parent().get_node("rootnode")
  7. var timer = Timer.new()
  8. add_child(timer)
  9. timer.set_wait_time(.02)
  10. timer.connect("timeout",getroot,"timerprint")
  11. timer.start()
  12.  
  13.  
  14. func timerprint():
  15. print("hello")
  16.  
  17.  
  18. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement