How do I control an object rotating along a elliptical path

Get help using Construct 2

Post » Thu Oct 23, 2014 8:29 pm

Imagine you have a isometric type elliptical circle on the ground and you wanted to make another object rotate around that path. Being controlled left or right via the keyboard arrow keys. Any thought's on how you'd approach that?
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Thu Oct 23, 2014 11:18 pm

Maybe use Pin behaviour - Bar Style with added supporting events.

Or create circle as invisible sprite, pin to it the object, every tick set position of the invisible object it to the "planet" and rotate with pinned to it "satellite". I think that would work really good.
B
10
S
1
Posts: 56
Reputation: 654

Post » Thu Oct 23, 2014 11:23 pm

Figured out what i was trying to accomplish.

Check it out - left and right arrows to rotate the red square, space bar to shoot bullets

Demo
https://dl.dropboxusercontent.com/u/403 ... index.html

Capx
https://dl.dropboxusercontent.com/u/403 ... otate.capx
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Thu Oct 23, 2014 11:30 pm

Interesting, it looks really good. Good job!
B
10
S
1
Posts: 56
Reputation: 654


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 8 guests