- Edited
Hello! I want to make a clone of Doodle God game (puzzle-alchemy genre), for learning purposes only.
I want to implement the functionality from the following video: 2:40 - 2:45
Here, when we have the elements classes in the middle of the screen, and we click on an element class, all element classes go to the left, and a clone of the clicked element class goes to the right.
I implemented the part with the element classes going to the left. But I don't know how to implement the part with the clone of the clicked element class that goes to the right.
Initially, I thought to create a clone of each element class to be underneath them, and to be set as invisible. And when I click on the desired element class, the clone of it will turn visible and go to the right. But here I noticed a problem with the collision shapes. Because they overlap each other, I don't know if I have access to both of them during the gameplay. When I tried this tactic, I remember that I had access only to one collision shape.
Now I am thinking of creating a clone of the object at run-time. But I don't know how optimal will be this.
How should I implement this? Is any of this tactics good or should I try something different?