Okay, I'm trying to build a blob.
Here is my inspiration:
I've had a little success making small blob constructions of nodes and cross-bars, but I've had to make each node and crossbar a separate object and attach each piece by hand with Create Hinge. And simple blobs with only a few sections don't behave very well.
I thought I could automate the process with loops to create a larger, more complex blob. Here's the blob I want to make:
It has a total of 33 nodes, 16 outer walls, 16 inner walls, 16 outer spokes, 16 inner spokes, and 16 crossbars. That's a grand total of 113 objects.
Now, I could go and make each object separate, but that would be tedious. And I could go and make Create Hinge actions for each object separatly, but that would be SUPER tedious... the outer nodes have 4 connections each, the inner nodes have 5, and the center node has 16. So that's a total of 160 or so Create Hinge actions I'd have to code in the event sheet on top of that.
That's a lot of work. I'd much rather just make one of each and use a loop to duplicate and attach them.
I can automate the spawning of all the objects and put them in the proper position for attachment. That's no problem. The problem comes with attaching hinges from one object to another...
When I pick an object, I can pick it by it's private variable and Construct knows which object I'm interested in. But when I do this:
+ Spoke.value("currentSpoke") = 1
- Spoke: Create Hinge to Node at Image Point 0
Construct has no idea which node I mean, because there's no way to specify which second object I'm interested in manipulating.
Or is there? Is there some method that I'm missing? Or is this beyond the scope of Construct at the moment?
(And yeah, this has to do with the polygon drawing thing I asked about earlier... eventually I want to make the blob parts invisible and just draw the outline around the blob, I just thought I'd get the easy part out of the way first.)