Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Aaddiction on July 28, 2014, 03:54:41 AM

Title: Array Maker vs Pool System?
Post by: Aaddiction on July 28, 2014, 03:54:41 AM
I'm a bit confused on what's the difference between array maker and any pooling manager. Aren't both preloading list of objects for pooling when needed? If so what the difference from having an array of objects and have pool of objects?

Sorry if its non sense to you. Thank you!
Title: Re: Array Maker vs Pool System?
Post by: Lane on July 28, 2014, 07:10:35 AM
ArrayMaker just lets you make Arrays.

A Pool Manager will actually manage the arrays and have a bunch of features like which and how many of the objects you want to preload into the scene. It will reset the objects correctly with despawn and spawn them correctly as well. If there aren't any objects in the scene's pool for use, then it would automatically create new ones, add them to the pool, and circulate them correctly.

In other words, ArrayMaker is not a pooling tool, but you could use it in part to roll your own playmaker pooling system. Notably, you might want to wait for 1.8.0 as there are native Array variables added.
Title: Re: Array Maker vs Pool System?
Post by: Aaddiction on July 29, 2014, 05:06:20 AM
Thank you, looking forward.