Akis Posted November 27, 2013 Share Posted November 27, 2013 I need to clone a object container which contains a bunch of other sprite/graphics/text/... What's the best way to do it? Maybe change what I need to change in it and then create a texture of it? In my case, I don't need to change anything else after creating the clone actually. //edit: Seems to work fine, feel free to suggest something else if there is a better way And, is it fine to remove everything with this code, when I don't need it anymore?renderTexture.destroy();container.removeChild(sprite);renderTexture = null;sprite = null; 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.