playMaker

Author Topic: Playmaker & PoolManager2  (Read 12485 times)

Kodagames

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
    • KodaGames
Playmaker & PoolManager2
« on: January 11, 2012, 06: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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: Playmaker & PoolManager2
« Reply #1 on: January 12, 2012, 12: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: 14210
  • Official Playmaker Support
    • View Profile
Re: Playmaker & PoolManager2
« Reply #2 on: January 12, 2012, 01: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

Kodagames

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
    • KodaGames
Re: Playmaker & PoolManager2
« Reply #3 on: January 26, 2012, 08: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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: Playmaker & PoolManager2
« Reply #4 on: January 27, 2012, 03: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
    • View Profile
Re: Playmaker & PoolManager2
« Reply #5 on: February 05, 2012, 04:57:11 AM »
Many thanks Jean!!
Did I said I love you? :)


justifun

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 228
    • View Profile
Re: Playmaker & PoolManager2
« Reply #6 on: February 13, 2012, 01: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: 14210
  • Official Playmaker Support
    • View Profile
Re: Playmaker & PoolManager2
« Reply #7 on: February 14, 2012, 12: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
    • View Profile
Re: Playmaker & PoolManager2
« Reply #8 on: March 11, 2012, 12:48:12 AM »
Hi Jean

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: Playmaker & PoolManager2
« Reply #9 on: March 11, 2012, 10:45:54 PM »
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
    • View Profile
Re: Playmaker & PoolManager2
« Reply #10 on: March 11, 2012, 11:46:00 PM »
That`s great.
Thank you, sir.

justifun

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 228
    • View Profile
Re: Playmaker & PoolManager2
« Reply #11 on: March 12, 2012, 07:26:31 AM »
You're the best Jean!

(and alex :) )

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: Playmaker & PoolManager2
« Reply #12 on: March 13, 2012, 01: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
    • View Profile
Re: Playmaker & PoolManager2
« Reply #13 on: March 17, 2012, 02: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
  • Full Member
  • *
  • Posts: 228
    • View Profile
Re: Playmaker & PoolManager2
« Reply #14 on: March 17, 2012, 06: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.