playMaker

Author Topic: Playmaker & PoolManager2  (Read 17590 times)

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Playmaker & PoolManager2
« on: January 11, 2012, 08:11:56 PM »
Hello All,

Im new hear and have just been watching some of the videos and think playmaker really looks cool!

Im thinking of purchasing it but have one question and Im really not that familiar with playmaker but here goes anyway.

Can playmaker work with PoolManager 2?

Im not sure how to instantiate with playmaker because I haven't used it yet. (maybe theres a demo?)

But would it be possible to use poolmanager to spawn instead of instantiate without code using playmaker like you would instantiate currently with playamaker?

Not sure if that question made sense? but hopefully someone understands it :) Im just trying to get a general idea of what I can do with playmaker. If playmaker cant do what I asked above (use poolmanager2) then Im guessing I could just activate and deactivate gameobjects with playmaker and have it work the same? Just a thought???

Anyone have any insights?
Have I said how much I love playmaker!!! This is one amazing tool

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & PoolManager2
« Reply #1 on: January 12, 2012, 02:43:50 AM »
Hello and welcome!

 Never played with poolManager 2 but I'll explain more in details how playmaker works.

 basically, it's a component like any other that you drop on a gameObject, So I would tend to think that it should not be in the way of how pool manager is working.

 The standard workflow is to add playmaker component during editing, not at runtime.

Now, if you want to use playmaker to control pool manager: that is totally feasible. you'll simply need to write custom actions to control pool manager.

for example:
Code: [Select]
// Use Spawn() instead of Unity's Instantiate()
Transform enemy = PoolManager.Pools["Enemies"].Spawn(myEnemyPrefab)

// Use Despawn() instead of Unity's Destroy() to de-spawn an enemy for reuse
PoolManager.Pools["Enemies"].Despawn(enemy);

then two functions can be implemented as custom actions and use directly within playmaker environment. I'll do them custom actions probably before the end of the day ( they are simple enough).


 Maybe someOne else has already played with this and will be able to confirm all of this.

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & PoolManager2
« Reply #2 on: January 12, 2012, 03:22:47 AM »
Here we go,

http://hutonggames.com/playmakerforum/index.php?topic=1007.0

http://hutonggames.com/playmakerforum/index.php?topic=1006.0

it's untested but should work. If I get a chance to get Pool Manager 2, I'll port the whole api, it's quit complete and well done it seems.

Bye,

 Jean

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Re: Playmaker & PoolManager2
« Reply #3 on: January 26, 2012, 10:17:00 PM »
WOW Thats Awesome Jean!!! and soooo fast :)

I think every one will benefit from this, pooling is a must when developing for mobile platforms and I seriously appreciate it!!!!

Sincerely,
Michael
Have I said how much I love playmaker!!! This is one amazing tool

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & PoolManager2
« Reply #4 on: January 27, 2012, 05:24:31 AM »
Hi,

 Thanks,

 I have some more actions that will be released sometime next week, to create pools at runtime. So stay tune.

Bye,

 Jean

Mark_T

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 72
Re: Playmaker & PoolManager2
« Reply #5 on: February 05, 2012, 06:57:11 AM »
Many thanks Jean!!
Did I said I love you? :)


justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Playmaker & PoolManager2
« Reply #6 on: February 13, 2012, 03:35:58 PM »
Any progress on the poolmanager 2 api porting jeanfabre? or are there still bugs to sort out with the beta/poolmanager?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & PoolManager2
« Reply #7 on: February 14, 2012, 02:23:07 AM »
Hi,

 Yes, One action is still causing problems.

 Can you wait a bit until Unity and playmaker are out of beta ( very soon apparently). then I'll be able to allocate some time on this.

 thanks for your patience.

 Bye

Jean

sicga123

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Playmaker & PoolManager2
« Reply #8 on: March 11, 2012, 03:48:12 AM »
Hi Jean

I was wondering whether you managed to do the API actions for poolmanager 2?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & PoolManager2
« Reply #9 on: March 12, 2012, 01:45:54 AM »
Hi,

 Yes, worked on it some more last week, I am uploading hopefully towards the end of today, creating the wiki page and all this.

Bye,

 Jean

Mark_T

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 72
Re: Playmaker & PoolManager2
« Reply #10 on: March 12, 2012, 02:46:00 AM »
That`s great.
Thank you, sir.

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Playmaker & PoolManager2
« Reply #11 on: March 12, 2012, 10:26:31 AM »
You're the best Jean!

(and alex :) )

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & PoolManager2
« Reply #12 on: March 13, 2012, 04:13:26 AM »
Hi,

 Here we go:

https://hutonggames.fogbugz.com/default.asp?W839

 I only have 2.5 so if you can test against the latest pool manager (2.6), and get back to me if you run into some troubles ( should be fine tho).

 Ill be working on some scenes to ship to help understand how to work with playmaker and pool manager. Sometimes next week I hope. Meanwhile, if you have any questions, don't hesitate :)

Bye,

 Jean

Mark_T

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 72
Re: Playmaker & PoolManager2
« Reply #13 on: March 17, 2012, 05:44:14 AM »
Hi Jean,

I`ll be very gratefull if you can help me with some sample scenes with the new PM2 actions in action. :)
I can`t make it to spawn under any circumstances. :(
Thanks a lot.


justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Playmaker & PoolManager2
« Reply #14 on: March 17, 2012, 09:13:53 AM »
I've been having issues as well, I can't even import pm2 by itself without getting errors.  I let the guys over there know, but haven't heard back yet.