How To Move Object On Equation Not Specific Path ?

I am looking for sample code that take an equation like X=X*X or any curve equation and then move object across this path (equation) , and also make object rotate also ...

Like (bezier object along path topic) but i want function that take equation as parameter and then move object on that path

if you can simplify the equation, then you can move the object for each point by altering the x and the y, almost like the sine scrollers, where the x,y co-ordinates are modified based on the sine function for that amplitude.

cheers,

?:)

Thank you jayantv

but the speed of rotating of the display object i did like this

local angle = math.atan2( points[i].y - points[i-1].y, points[i].x - points[i-1].x )
angle = angle * 180 / PIE
dash:rotate(angle)

views:1272 update:2011/9/25 12:40:18
corona forums © 2003-2011