Using animate()
how do you create curved movement.
i was thinking something along the lines of movement which is the horizontal movement is the square of vertical movement with adition and subtraction to control the exact size of the curve
(because when drawing a line on a graph you use a formula which involves use of a square to make the curve)
IE
H = horizontal movement
V = vertical movement
H = V^2 + 3.5
but how would i apply such an algorithm to the animate() method
Simply choosing the V value, and then calculating H and inserting that as a number would not work because all that would do is give the start and end H and V values, as you normally would, and that would just create a straigt line.
the formula has to be applied for every individual pixel of movement.
or is there an easier way?