Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on May 26, 2014, 05:55:38 PM

Title: Duplicating and Renaming objects (DKForge) automatically
Post by: jess84 on May 26, 2014, 05:55:38 PM
So I need 100 buttons, one for each of my levels.

At the moment I duplicate one, and rename it _001, 002, etc. The FSMs I have get the object name and set everything based on that (so other than the manual renaming i don't have to do anything else).

If I however need to change something, I then need to do it on _001 and re-duplicate the objects, and rename them again. I also have been setting the Z-Order manually. (time consuming)

I have the example that Lane kindly put together (http://hutonggames.com/playmakerforum/index.php?topic=7297.msg35340#msg35340) for cycling through objects.

What I'd like to do now is automatically duplicate _001  99 times, rename them sequentially, and set the property of the Z-Order.

Would this be possible with Arraymaker? How? (I can work out the Z-Order thing with Set Property), but I'm unsure of the first 2 bits.