Hi all,
I am coding a mobile game with some friends and we are currently making a design decision. Our level scene consists of a 2d circular grid and block objects which can be moved along the radial or angular lines. Please see the below image for a graphical representation:
We have narrowed down our methods for achieving radial motion into two options.
- In the event that the block object must be moved up or down the radial lines of the grid, adjust the scale of the existing block game object relative to its change in radial position.
As can be seen from the images above, due to the shape of the original block the shape no longer fits within the boundaries of a given grid slot position at several points in its upward or downward path.
2)The other option we came up with is to create a series of n images, which represent n transitional sizes of the block as it moves up or down the radial line. In the event the object must move, we can “loop” through these images depending on what radial position the block must move to next.
This method could work, but requires a lot of extra images, and results in a “choppy” transition.
Now with the background info described, my question is: is there a method that would result in a much smoother transition, and that does not require an animation of many images? I am wondering if someone has run into a similar design problem before, and if there exist a module or library within Defold that can be used to help the design of this type of morph transition? Any help or links to further reading would be greatly appreciated.
Regards,
Augustino