How do I orbit moons around planet that can rotate?

Get help using Construct 2

Post » Tue Mar 01, 2016 7:59 pm

Moons cannot seem to orbit around a 8-directional player while being pinned or positioned. How can I get around this so moons rotate with player while appearing to orbit it?
I'm not married to using Sine. It could be a Bullet or Forward positioning.

https://dl.dropboxusercontent.com/u/73836006/orbit.capx
B
61
S
19
G
3
Posts: 451
Reputation: 6,389

Post » Wed Mar 02, 2016 1:04 am

B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Wed Mar 02, 2016 8:58 am

@7Soul Very interesting! Not quite though as it's orbiting in a circle. I need it to "orbit" horizontally (back and forth) to appear like it's orbiting. My example to the left in the capx, shows the movement I'm trying to achieve on top of the player that also rotates with him.
B
61
S
19
G
3
Posts: 451
Reputation: 6,389

Post » Wed Mar 02, 2016 12:18 pm

Then replace the 'self.orbit_radius' with '0' (zero) in the 'set position' action on the Y.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Mar 02, 2016 4:50 pm

https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Mar 02, 2016 5:17 pm

@99Instances2Go kinda works, but I need to moons to rotate with the player as if it's being pinned with position and angle.
B
61
S
19
G
3
Posts: 451
Reputation: 6,389


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests