playMaker

Author Topic: Playmaker and Pool Manager [SOLVED]  (Read 3402 times)

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Playmaker and Pool Manager [SOLVED]
« on: May 30, 2013, 06:43:21 AM »
Hi

I have just purchased Pool Manager and looking to get this working so I can optimize the game and not use create object etc.

I am struggling to work out how to actually get it working.

I will have a lot of objects already created at the start of the level but will also have some objects that will be created IE particle effects.

I am struggling to grasp how to actually do it.

I assumed it would be a case of creating a empty game object IE "Pool Manager - Particles" and add a FSM with the create pool action

After this I get stuck lol - any help would be greatly appreciated
« Last Edit: May 31, 2013, 09:12:05 AM by lioncirth »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker and Pool Manager
« Reply #1 on: May 30, 2013, 07:10:20 AM »
Hi,

You need to create a Pool, and that's done within Pool Manager system.

1: create an empty game Object
2: add a component "SpawnPool" to that GameObject it will become your pool
3: Give the pool a name, you will need to reference it in PlayMaker Actions
4: create a prefab ( anything really, even with playmaker fsm on it)
5: in your pool, add a new entry ( click the plus button in the "Per Prefab Pool Options") and reference that prefab, give it a preload amount
6: now in an fsm, use the action "Pmt Spawn", reference the name of the pool, and the reference the prefab you want from that pool)

Done, press play, and you will get the pool to give you a pre loaded gameObject.

Does that help? Have you watch the videos on the pool manager website? it's important that you grasp the doc from pool manager first, before getting into using it in playmaker.


bye,

 Jean

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Re: Playmaker and Pool Manager
« Reply #2 on: May 30, 2013, 10:12:35 AM »
Thanks

Ill make sure to go through their documentation and see how I get on :)

Thanks alot!