Jump to content

Standalone Object Pool


Secretmapper
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...