Ninjadoodle Posted June 23, 2018 Share Posted June 23, 2018 Hi @enpu Just trying to understand this a little better ... If I do this -> this.mySprite.addTo(game.scene.container1); but later on decide to -> this.mySprite.addTo(game.scene.container2); Is this basically just changing the sprites container, without adding another instance? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted June 23, 2018 Share Posted June 23, 2018 Yes sprite/container can only have one parent. So adding it to another container will remove it from it's current parent. Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted June 23, 2018 Author Share Posted June 23, 2018 @enpu Awesome, I was hoping that was the case - thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.