views:

3

answers:

0

Hi there

Just wondering in my Android game if there is a formula/function that would make animating an object across the screen in a 2d environment quick and simple.

Of course if it just in a straight line then i would only need to increment the X co-ordinate for example every time a frame was rendered, however I'm looking to use more complex patterns such as a parabola that then inverts to make a sort of rotated S-shaped movement?

Are there any robust/simple ways to achieve animations such as this?

Many thanks