Advertisement
otorp2

timer.new

Dec 24th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. extends Node2D
  2.  
  3. func _ready():
  4. var tt = Timer.new()
  5. tt.set_autostart(true)
  6. tt.set_wait_time(1)
  7. add_child(tt)
  8. tt.connect("timeout",self,"breakfast")
  9. pass
  10.  
  11. func breakfast():
  12. print("bacon")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement