I'm having issues trying to get one or more objects to orbit around another. Is there a tutorial available that I can study off of?
I'm having issues trying to get one or more objects to orbit around another. Is there a tutorial available that I can study off of?

I remember an extension made specifically for this. Called Orbit I think, check the extension websites.
One of the Clickteam Movement might allow for this. Didn't check though.
There are a few methods to do this. Either you can use the "vector movement" together with "clickteam movement controller", and pull the orbiting object toward the other. It's of course also possible to do this without extensions, using some expressions.
For another type of orbiting, you can also use this technique:
[Always]
Set X Position of "Orbiter" to X( "Center of rotation" )+(Sin(Rotation( "Orbiter" ))*Distance( "Orbiter" ))
Set Y Position of "Orbiter" to Y( "Center of rotation" )+(Cos(Rotation( "Orbiter" ))*Distance( "Orbiter" ))
Rotation and Distance are alterable values. Now you just have to increase the "rotation" value to have it orbit the center object. Don't forget to set the "distance" value to something higher than 0.
I'd prefer to not use extensions. But the formula you've given me only makes the orbiting object hang in midair instead of orbiting around the player character like I want it to. (Screens below).
NOTE: The bright blue dot on Mega Man's chest is the center of rotaton object.
![]()
Here's a screen from my event editor, using that formula.
![]()
I think you're missing this one.Originally Posted by Nifflas












You want something along the lines of:
* Always
- (Active 2) : Set X position to X( "Active" )+100*Sin(Alterable Value A( "Active" ))
- (Active 2) : Set Y position to Y( "Active" )+100*Cos(Alterable Value A( "Active" ))
- (Active) : Add 1 to Alterable Value A
.:::.Joshtek.:::.
Wrong.Originally Posted by OliverPearl
Rotation = 4
Distance = 16
I set those before even putting in the formula.
Thanks Josh. I'll try that out.
EDIT: It works with a single object, is it possible to have more than one object orbiting around the central object at the same speed as the first (But different positions)?
An example would be:
![]()












Yes. Use spread value on the orbiting objects, then instead of using just the Alt A of the center object, use Alt A of Center Object + (Alt A of Orbiting Object * 50 ) or similar.Originally Posted by Strider
.:::.Joshtek.:::.
Actually, you was misunderstanding that one. I meant that you have to increase or decrease the "rotation" value on [Always], not just set a static value once. I also recommend that you limit the rotation values to 0-359 by using these events:Originally Posted by Strider
[If rotation > 0]
Add 360 to rotation
[If rotation > 359]
Sub 360 from rotation