User Tag List

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

Thread: How can I create an object orbiting around another object?

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question How can I create an object orbiting around another object?

    Hey Clickteam,

    I want to create an object that orbits clockwise around another object, just like the moon traveling around the earth. How can I accomplish this in Fusion?

  2. #2
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a custom movement called "Circular" that will make the object move around a fixed location. Are you planning on having this object to move around an object that is also moving?

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Kentronisk.

    That's easy! I'm about to start making a game where the player is a small astronaut that has to jump from Planet to Planet. I want the astronaut to constantly orbit each planet that it's on. When the player hits the fire button, the astronaut will launch in a straight line, so hopefully the player aligned the astronaut to the next planet. If not, the astronaut will suffer a cold, cold lack of oxygen fate.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hey Emerson,
    what Kentronisk said is for sure the quickest method,
    and if you plan having that multiple planets in fixed positions you can get it to work by creating multiple circular movements.

    For more complex behaviours, some trigonometry can do, let us know if you need some advice

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yo Schro!!!

    I'm going to start basic with the levels and as the players progress, I would want complexity to the movements. Is there a tutorial or an example that show different behaviors of objects using Trigonometry? Also, one question. Let's say the astronaut is orbiting around one planet and launches to the next planet, how would this next planet "catch" the astronaut so that he's orbiting around it's gravity?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Yeah, you got straight to the point
    that would be the most tricky part, probably.

    Question:
    1- you want to catch the astronaut at some fixed distance from the planet
    2- you want to catch the astronaut in a range of distance from the planet (like > 50 <100 pixels)
    3- you want to apply some sort of gravity as the astronaut approaches the planet, so that if its "momentum" is small enough he gets gently "grabbed"

    1 & 2 are going to be the easiest,
    while for 3 Physics Engine may possibly give you some help, but I've never experimented much with that so I can be of little help.

    You can probably emulate this behaviour without physics, maybe simplifying a little the number of forces in play,
    like gradually changing the angle of the astronaut as he approaches the planet, to make it gently aim towards the planet,
    and then activate the orbiting code.

    Orbiting can be, again, the circular movement that gets activated,
    or some trigonometry code.

    If you don't want to mess with math, maybe you can try experimenting with physics, just to see what comes out.

    But if you have no luck, this is going to be much of a "math" game from what you say

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Great Schro!

    As for the beginning of the game, I'll start without the gravitational pull, just button press, launch astronaut, collide with next planet at fixed distance, repeat. Then later as the game progresses, I could input launch "strength" and gravitational pull where the player could hit the planet, but if too hard, they could fall out of gravity!

    Okay, so questions on how to accomplish number one.

    1. Would using "circular movement" be the best method for orbiting around planet?
    2. When button is pressed for launch, how to launch in linear path away from planet?
    3. How to collide with planet at fixed point?

    Thanks Schro for your help!

  8. #8
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Emerson3 View Post
    I'm about to start making a game where the player is a small astronaut that has to jump from Planet to Planet.
    By the way, I have made an app like this:
    Attached files Attached files

  9. #9
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Oh no Advaith!!!

    I honestly didn't mean for any similarities. I thought of the idea and naturally astronaut and planets popped up. I'm gonna go back to the drawing board with the characters and plot so not to duplicate.

  10. #10
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No, it's ok, you can keep your idea, it seems to be more interesting than mine.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 24th August 2015, 11:39 PM
  2. Replies: 2
    Last Post: 4th April 2015, 11:50 PM
  3. [BUG] Create object if flag is off, and assign something to the created object
    By Popcorn in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th January 2013, 11:01 PM
  4. 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
  5. Create object at same position of object destroyed
    By The Thinker in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 6th November 2006, 12:16 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
  •