Advertisement
otorp2

create timer code

May 18th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. extends Sprite
  2.  
  3. var timer;
  4.  
  5. func _ready():
  6. timer = Timer.new()
  7. timer.set_one_shot(false)
  8. timer.set_timer_process_mode(TIMER_PROCESS_FIXED)
  9. timer.set_wait_time(0.6)
  10. timer.start()
  11.  
  12. ##timer.connect("timeout", self, "function") for timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement