Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- There probably are better ways to do this but here is what I did:
- Create your own init() function in mySprite.gd and call it after instancing the scene.
- var mySprite = preload("res://mySprite.scn").instance()
- mySprite.init(a, b)
- getparent().add_child(mySprite)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement