Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: dabaq on May 08, 2014, 05:48:21 PM

Title: Endless pooling system
Post by: dabaq on May 08, 2014, 05:48:21 PM
Hi.

I'm making a 2d runner game. I'm using pool manager to store my prefabs (in this case the floor). As my character moves I want to spawn the floor along the way, and when out of sight the floor will be despawned. Is this possible using pool manager? If so, could you give me a hint?

Best regards
Title: Re: Endless pooling system
Post by: jeanfabre on May 09, 2014, 02:55:40 AM
Hi,

Yes, you can, and it's not really difficult, you create a pool and you use pool manager own instantiation call so that it takes instances from the the pool itself.

What pooling system you are thinking of purchasing?


bye,

 Jean
Title: Re: Endless pooling system
Post by: dabaq on May 09, 2014, 01:38:50 PM
Hi,

Yes, you can, and it's not really difficult, you create a pool and you use pool manager own instantiation call so that it takes instances from the the pool itself.

What pooling system you are thinking of purchasing?


bye,

 Jean

Hi, thanks for the reply.

I already have the poolmanager5 (it has PM actions) asset and created a pool with the prefabs I want to use. However as my character moves along, I somehow need to spawn one of those prefabs and despawn them when they move out of the camera.

best regards
Title: Re: Endless pooling system
Post by: dabaq on May 10, 2014, 10:54:18 AM
I figured this out, thanks anyway :)