So exactly as the title says i want to know how to make a series of events and actions that will make lines arrange themselves between objects. The first picture shows what it would look like at the start, but when you run it, it will look like the second.
Note that all the lines and squres are only 2 objects not 8. I find it easy to just make an instance variable and give all the sprites different numbers.