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
Develop games in your browser. Powerful, performant & highly capable.
So if I understand correctly you want it to ORBIT around the other object...?
Yes!
Here is an old example of mine that might help you get the gist of it...
[attachment=0:9vpsw51a][/attachment:9vpsw51a]
But I want my player to move (and turret should follow)
The same calculations apply, —
I added 8Directions behavior to the planet in this one and put all moons to rotate automatically. No math was changed.
[attachment=0:2w59h3li][/attachment:2w59h3li]
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)
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!
"and keep the positioning ones" but it works without doing it!
Didn't get what you mean...
Anyway... Here is the capx with the rotating actions disabled. The moons will no longer rotate...
[attachment=0:3tc0t7d8][/attachment:3tc0t7d8]