Actor Gravity

millwavemillwave Member Posts: 9
edited November -1 in Working with GS (Mac)
Is there a way to make actors attracted to each other (as in gravitationally)?

Comments

  • millwavemillwave Member Posts: 9
    Both, ideally.
  • millwavemillwave Member Posts: 9
    Is this possible?
  • Fafnir312Fafnir312 Member Posts: 161
    I think it might be possible but I think it'd get complicated quickly and be extremely inefficient. There's no "gravitational attraction" button if that's what you're looking for.

    Attracting to a single actor wouldn't be too hard and is something I've been thinking of doing (ala that Mario game where he jumps between planets) but I haven't gotten around to it. But a bunch of actors attracting to each other... I dunno.
  • millwavemillwave Member Posts: 9
    How would you go about attracting to a single object?
  • debugdesigndebugdesign Member Posts: 886
    So would this work for a homing misile in the side scrolling shooter? I have an actor called
    misile1 and enemies called enemy1 2 3 etc
  • debugdesigndebugdesign Member Posts: 886
    So enemy misiles can home in to the player but not the other way around. I will try that...
  • wroachbarrettewroachbarrette Member Posts: 101
    quick note to those trying to use this method with moving objects, havent yet gotten the sufficient force needed to allow the object to follow another object for example a planet attracting astroids when the planet is in orbit, now this will work when focused on a non moving area such as the sun
Sign In or Register to comment.