Advertisement
otorp2

basic signal

Nov 3rd, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. extends Sprite
  2.  
  3. signal joes_signal
  4.  
  5.  
  6. func _ready():
  7. self.connect("joes_signal",self,"onsignalreceived")
  8. emit_signal("joes_signal")
  9.  
  10.  
  11. func onsignalreceived():
  12. print("hi i am joey")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement