In a game where I can move the objects, how i do this:
When an object collide with each other, they join into one, and then, i can move this larger object, that when colliding with another one, joins again, creating a larger object yet .
But need to respect the collision point, "pasting" the object at the point where the collision occurred.
I could do the following:
When the objects collide, destroying an object and change the sprite of another one.
But this way, will be need many sprites because there are many objects in screen.
I'm talking about something like the game Pudding Monsters.
How could i do someting like this?