I have a bunch of character instances created using a for loop which are created with their hierarchical child objects.
Each character is comprised of a few different parts..body, legs, head etc using the scene graph. But lets say I want to change the color of the body to something random for each of these. How do I do it?
I can loop through the base object that created them (the legs in my case), but I have no idea how to access the children in code.
Develop games in your browser. Powerful, performant & highly capable.
Create a sub event within the creation loop and create a PICK LAST CREATED event.
In my case I pick the last created shirt and then color it.