How do I make an object to circulate around other object?

Get help using Construct 2

Post » Tue Jan 13, 2015 7:28 pm

I want my turret to come round my player who is going to move.
And I don't want it (my turret) to change angle
B
6
Posts: 56
Reputation: 366

Post » Tue Jan 13, 2015 7:34 pm

So if I understand correctly you want it to ORBIT around the other object...?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Tue Jan 13, 2015 7:35 pm

Yes!
B
6
Posts: 56
Reputation: 366

Post » Tue Jan 13, 2015 7:40 pm

Here is an old example of mine that might help you get the gist of it...

polarcoordinates.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Tue Jan 13, 2015 7:46 pm

But I want my player to move (and turret should follow)
B
6
Posts: 56
Reputation: 366

Post » Tue Jan 13, 2015 7:59 pm

The same calculations apply, @NormalOne.

I added 8Directions behavior to the planet in this one and put all moons to rotate automatically. No math was changed.

orbit-moving-example.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Wed Jan 14, 2015 3:40 pm

My apologize.
I want my orbit moving object not to change it's direction,
so I don't want it to rotate around it's centre (moon's face rotate)
B
6
Posts: 56
Reputation: 366

Post » Wed Jan 14, 2015 4:07 pm

Just remove the rotating actions and keep the positioning ones, then... :)

Let me know if you can't do that and I'll help you out!
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Wed Jan 14, 2015 7:36 pm

"and keep the positioning ones" but it works without doing it!
B
6
Posts: 56
Reputation: 366

Post » Wed Jan 14, 2015 7:41 pm

Didn't get what you mean...

Anyway... Here is the capx with the rotating actions disabled. The moons will no longer rotate...

orbit-moving-example.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012


Return to How do I....?

Who is online

Users browsing this forum: jasontoups, raptor0555 and 1 guest