Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # var b="textvar"
- func _ready():
- get_node("Timer").connect("timeout",get_parent().get_node("rootnode"),"printme")
- get_node("Timer").set_wait_time(1)
- get_node("Timer").start()
- pass
- func printme():
- var sprite = Sprite.new()
- add_child(sprite)
- sprite.set_texture(preload("res://icon.png"))
- print("hi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement