Hey, I got this object that spawns a single sprite object multiple times and places them at the end of the chain.
The object has an instance variable (called "ID") which is set to the previous highest value + 1 (so the first will have a value of 1, the second 2 and so on)
Now, after each instance of the object is created, I want to create a Physics "revolute joint" between the newly created one and the previous one, but I don't know how to select them in one action...
I have seen some solutions on the forum involving multiple families and adding each object to a family, but as I don't know how many chain objects there will be, I don't think it'll work.
So, is there any way of making it work?
Thanks in advance!