why do you create objects? why not use the hats body and pants objects and have multiple frames, and every 3 seconds or when u need it just change the frame....
and then add a condition of each curent item and check for it if its already existing then reselect another 1... creating objects is a bit cpu intensive... changing frames and using the same object is faster and easier.
youl need a local variable though... to save the curent frame of each item.
now depends on how many hats and pants and items you have on screen... i see you using for each familly ... that means you have quite some objets at 1 time in screen...
edited: here is the capx i was saying proving my knowledge for multiple items, i created instead 1 familly holding the entire sprites, and keeping the 2 variables the curent frame and picked frame.
there are hats/belts/and feet
every 3 seconds for each famillymember we change the pickedframe variable to random 0 , selfanimationframecount
then we check the curentframe variable and picked frame if their not equal then we set curentframe to the pickedframe value and set animation to curentframe
else we pick again a new frame.
however my aproach is only applying to items that are not randomly generated, for that better to use the plugin above i guess... or create the obejcts hats/etc separated from their famillies... and then apply the code in my capx.