Thanks nimos100! That was really helpful. Thought about this overnight and had thought of some of those methods myself, it just learning how to do it within C2. There are some things I didn't understand from your post, hopefully you can help me understand them.
Also you add the pin behaviour.
For each of the boxes and the dotted areas that holds them in the bottom, you add a variable, could be the color if they are unique. This is so you know where each of them should go If they are replaced or dropped outside the dotted boxes.
So when you have to return them you just test on this variable.
I didn't state this properly in my original post (so my fault), but the blocks should be able to moved multiple times and reordered (so it could be green, red, purple, yellow, blue, etc). From what I presume you said, this would fix the objects to a container.
I have been able to implement a few things based off what you said and some investigation of my own, the capx is available here. I currently only have the free version, but am in the process of getting the full version shortly so I can use families instead of objects.
I have implemented:
- Moving shapes
- Boxes snapping to containers
- Boxes returning to container if not moved to container
What I would love help to implement is how to make objects switch positions. When a box moves into a container that has a box in it, it needs to send the box that was there to the container the new box came from, so their places 'switch'. I put a note in the .capx.
I'm really impressed with how quickly I can prototype in Construct 2.
Cheers, Jack.