d13 Posted May 15, 2014 Share Posted May 15, 2014 Hello! I'm trying to understand how and why to use DisplayObjectContainer and SpriteBatch. - Should they be used to group sprites to make game scenes? - Could they be used to group similar sprites, like enemies or bullets. That way I suppose you could use the `children` property to loop through all their containing sprites. - Why would you use DOC instead of SB? My understanding is that SB is faster, but shouldn't contain nested objects. For games, would it best to default to SB to err on the side of speed? - What makes SB fast? Is it faster to dump sprites in an SB and animate then there, rather than if they were just animated directly on the stage? Or is SB just fast relative to DOC? If any more experienced users chime in with their ideas and workflow scenarios, that would be great! Quote Link to comment Share on other sites More sharing options...
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.