Ellipsoïdal movement.

For questions about using Classic.

Post » Sun Jan 09, 2011 9:36 pm

Hi everyone,

I'd like to know how I could make something move along an ellipsoïdal path like in the menus you can see in the secret of mana serie... I've tried to make it but I think it shall need an equation on the movement to work properly.

Thanks in advance.
B
72
S
15
G
4
Posts: 311
Reputation: 11,609

Post » Mon Jan 10, 2011 12:24 am

Probably the easiest way would be to use the path behavior set to curved.
Just add a node at the start, mid, and end points, then set its position on the path to 0, and start.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Mon Jan 10, 2011 2:45 am

set position to

x: origin.x+cos(angle)*(ellipse width)
y: origin.y+sin(angle)*(ellipse height)

origin would be the point you want at the center of the ellipse, angle is an angle from 0-359 (well it can be anything really, but thatll just loop it back since its an angular value after all)

the other parameters are pretty self explanatory. to make it spin you just need to alter the angle value.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests