playMaker

Author Topic: set multiple game object  (Read 3239 times)

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
set multiple game object
« on: October 14, 2012, 10:44:36 PM »
Hi,
is there a way to set multiple game objects instead of one in a action.
exemple : i wana change the texture in a material (with "set material texture") but not only for one object but 50 ... The choice I have is "use owner" or "specify game object" (one?)
Could I use Layers or Tags ?
please excuse my english ;-)
Thanks a lot

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: set multiple game object
« Reply #1 on: October 15, 2012, 04:56:36 AM »
Hi,

 for this, I would suggest using ArrayMaker:

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

You can fill a list of gameObject during editing or at run time, and then loop through them to do a common action, and even being able to test case for them and dispatch different actions if needed.

bye,

 Jean

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Re: set multiple game object
« Reply #2 on: October 15, 2012, 09:51:11 PM »
Merci Jean,
I've seen an old post saying there are no tutorials. Is it still true ?
It seems a lot too complicated for me (just studying samples ...)
Thanks again
Alain

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: set multiple game object
« Reply #3 on: October 16, 2012, 05:35:48 AM »
Bonjour Alain,

 well, yes no tutorials, simply do not have spare time for this. ArrayMaker is kind of meant to be used when you are already comfortable with playmaker AND arrays and hasthables and what they mean, so in that sense, it can be difficult to grasp for beginners and none coders.

 Try to push and study the examples, and come back to me with any questions you have, for example ' in that fsm, I don't understand what's happening in state 'xxx' or 'could you explain hw you do this and that' and I'll happily reply here trying to make sense of all this.

bye,

 Jean

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Re: set multiple game object
« Reply #4 on: October 16, 2012, 10:16:19 PM »
ok,
Thanks a lot for your answers !
bye