Instantiate prefab in the middle of a leantweenpath
Hi, I am new to Unity so please bear with me. I am working on a tile matching/bubble shooter game like Zuma. Essentially, a row of bubbles follow a path and you shoot out a bubble of matching color to destroy them. When they don't match, they get added to the line of bubbles. I am using LeanTweens to make the bubbles follow a bezier path for the above purpose. I am doing so by giving the bubble prefab a leantween script to follow the path. However I have no idea how to make a newly inserted bubble join into the line(a list) of bubbles at the point of contact and then start following the path from there instead of the very beginning of the path. More Details: Bubbles are Sprite Prefabs with colliders, the wave/ line of bubbles is a List of GameObjects, and when the bullet object triggers the bubble wave, the bullet is destroyed and a new bubble is added.
Your answer
Follow this Question
Related Questions
restricting player movement with a path? 1 Answer
Load resource file at runtime 0 Answers
Lerp Random Position - Within Original Vector3 1 Answer
I have to look at what issues to such an event 1 Answer
Making an AI follow a path. 0 Answers