Advertisement
otorp2

timer as child of node2d

Nov 2nd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1.  
  2. extends Node2D
  3.  
  4. func _ready():
  5. var root = get_parent().get_node("rootnode")
  6. get_node("Timer1").connect("timeout",root,"on_Timer1_timeout")
  7. get_node("Timer1").start()
  8. pass
  9.  
  10.  
  11. func on_Timer1_timeout():
  12. print("hi")
  13. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement