playMaker

Author Topic: Endless pooling system  (Read 1893 times)

dabaq

  • Playmaker Newbie
  • *
  • Posts: 13
Endless pooling system
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Endless pooling system
« Reply #1 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

dabaq

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Endless pooling system
« Reply #2 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

dabaq

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Endless pooling system
« Reply #3 on: May 10, 2014, 10:54:18 AM »
I figured this out, thanks anyway :)