how can i make a path with parabola equation to display bubble.Actually i have to maintain X axis of different size of bubble. As i shown in figure.(highlight with red color ).

Printable View

- 06-24-2011, 01:28 PMAshish_jainj2me bubble game
how can i make a path with parabola equation to display bubble.Actually i have to maintain X axis of different size of bubble. As i shown in figure.(highlight with red color ).

- 06-24-2011, 05:07 PMKevinWorkman
Not really sure what your actual question is, as you haven't given any context. You might want to provide an SSCCE that demonstrates where you're stuck.

If you're asking how you can give something a path, one way to do it is to write an equation that gives the location based on time. Then when you update the position, just pass the elapsed time into the equation and set the location accordingly. - 06-26-2011, 12:12 PMAshish_jain
means i want to make a path than bubble will continuously follow this path.

- 06-26-2011, 05:01 PMDarrylBurke
Well, Kevin already answered that. I guess your problem is solved, as I don't see an SSCCE.

db