Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: polygon on September 21, 2014, 08:23:38 AM

Title: Game Object Pool with ArrayMaker?
Post by: polygon on September 21, 2014, 08:23:38 AM
Hi :)

I'm trying to create a pool of objects with playmaker and arraymaker but can't figure out how to do this properly.
To be more precisely I'd like to spawn a prefab 100 times while the level is loading and store them in an array of game objects but I have unfortunately no idea how to do this :(

Best regards,
Daniel
Title: Re: Game Object Pool with ArrayMaker?
Post by: mweyna on September 21, 2014, 05:19:53 PM
ArrayMaker can store the objects, but for actual pooling, you'd want to look into something like PoolManager (http://poolmanager.path-o-logical.com/). There isn't tons of tutorials on doing that, but the Playmaker Actions are pretty easy to understand.
Title: Re: Game Object Pool with ArrayMaker?
Post by: app_advisory on September 21, 2014, 07:59:38 PM
Hi,

poolManager is a really cool stuff.

You re right.


But I have a big question :


How can I ise it with Photon multiplayer?

If I want to spwawn with poolManager and instant irate this spawn with a network-photon instantiate ?

Can I do that ?



Thanks a lot for your help.


Best regards,

Anthony
Title: Re: Game Object Pool with ArrayMaker?
Post by: mweyna on September 22, 2014, 12:43:26 AM
I haven't a lot of experience with Photon yet, but I'd imagine you're just telling it to spawn a pre-fab which seems pretty basic. Maybe someone else would like to chime in?
Title: Re: Game Object Pool with ArrayMaker?
Post by: app_advisory on September 22, 2014, 03:19:19 AM
On fact toi have to instantiate the prefab with photon. It's a special method.

And when there is a lot of instantiate to do, with the same object, it's better to use poolManager...

But poolManager + photon ...?!
Title: Re: Game Object Pool with ArrayMaker?
Post by: jeanfabre on September 23, 2014, 04:19:02 AM
Hi,

 I don't think there is a pool system for Photon since photon use resources to get its prefabs to instantiate.

I'll ask the team to see if they have something.

 Bye,

 Jean
Title: Re: Game Object Pool with ArrayMaker?
Post by: app_advisory on September 23, 2014, 04:19:43 AM
Thanks Jean you're the best !