Secretmapper Posted January 20, 2017 Share Posted January 20, 2017 Hello! Groups dictate two functionalities - object pooling, and z-depth. Objects inside two different groups cannot have 'interspliced' z-index: one group is always on top of another. Now the problem arises in object pooling. As you can imagine I'd want to create something akin to a `bulletGroup`, `enemyGroup`, `chaserGroup`, etc. but since I'd want to intersplice their z-index, that is impossible. Using one mainGroup solves the z-index, but bars me from using handy object pooling methods. What do you guys use for this? Is there a standalone object pool I can use, or is there a trick I can use for my usecase? The thing is I have different classTypes for the different groups, but the groups themselves have interspliced z-s Link to comment Share on other sites More sharing options...
phreaknation Posted January 20, 2017 Share Posted January 20, 2017 typically I assign priority to the groups. Effects over bullets, bullets above enemy and player, and player above enemy. No idea what chaser would be in this case. Link to comment Share on other sites More sharing options...
Recommended Posts