PlayMaker Help & Tips > PlayMaker Help

Game Object Pool with ArrayMaker?

(1/2) > >>

polygon:
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

mweyna:
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.

app_advisory:
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

mweyna:
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?

app_advisory:
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 ...?!

Navigation

[0] Message Index

[#] Next page

Go to full version