I would like to do something like this :
For each object of my family "monster", I search the closest object from the same family "monster" and I pin them to each other.
Any way to do this?
Develop games in your browser. Powerful, performant & highly capable.
You can't manipulate two of the same object at the same time. Just make a second family, the same as monster. Then you can search the second one.
It would be nice if Construct 2 made this possible, as you can do with a regular programming language.
I like the idea of having an identical family, but I don't think it will work as long I manipulate a family variable in my foreach loop, right?