User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Orbiting Objects

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Versailles, MO, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Orbiting Objects

    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?

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    I remember an extension made specifically for this. Called Orbit I think, check the extension websites.

  3. #3
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Orbiting Objects

    One of the Clickteam Movement might allow for this. Didn't check though.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    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.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Versailles, MO, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    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.


  6. #6
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Orbiting Objects

    Quote Originally Posted by Nifflas
    Now you just have to increase the "rotation" value to have it orbit the center object.
    I think you're missing this one.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,523
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Orbiting Objects

    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.:::.

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Location
    Versailles, MO, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Quote Originally Posted by OliverPearl
    Quote Originally Posted by Nifflas
    Now you just have to increase the "rotation" value to have it orbit the center object.
    I think you're missing this one.
    Wrong.

    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:


  9. #9
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,523
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Orbiting Objects

    Quote Originally Posted by Strider
    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)?
    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.
    .:::.Joshtek.:::.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Quote Originally Posted by Strider
    Quote Originally Posted by OliverPearl
    Quote Originally Posted by Nifflas
    Now you just have to increase the "rotation" value to have it orbit the center object.
    I think you're missing this one.
    Wrong.
    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:

    [If rotation > 0]
    Add 360 to rotation

    [If rotation > 359]
    Sub 360 from rotation

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Hidden objects (it thinks objects inside the screen are outside?)
    By SoftWarewolf in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 16th December 2012, 11:15 PM
  2. Player controlled active object orbiting around fixed point?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th June 2012, 04:21 AM
  3. Compairing 'Objects AltValueA' to 'Objects AltValueB' dont work
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th May 2012, 12:27 AM
  4. I suck at math: Need help with "reverse orbiting"
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th April 2011, 12:41 PM
  5. Spinning/Orbiting Actives for Corlen
    By LB in forum File Archive
    Replies: 6
    Last Post: 15th September 2010, 11:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •