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 [import]uid: 74537 topic_id: 15106 reply_id: 315106[/import]

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,

?:slight_smile: [import]uid: 3826 topic_id: 15106 reply_id: 55879[/import]

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)
[import]uid: 74537 topic_id: 15106 reply_id: 55881[/import]