Center Gravity

MERMMERM Member Posts: 194
edited November -1 in Working with GS (Mac)
I am making a particle game where i want the particles to go of course to the center of gravity. how can I make a game where the gravity shifts to where the mouse is clicking?

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Give all the effected actors a behavior to accelerate towards mouse position x and y.
  • AsymptoteellAsymptoteell Member Posts: 1,362
    By the way, I can picture this idea of yours making some COOL games.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you could probably use "accelerate to" mouse position instead of using a set gravity
  • MERMMERM Member Posts: 194
    k but the actors are the preset particles in the particle command, so should I just try a spawn command?
  • AsymptoteellAsymptoteell Member Posts: 1,362
    If you used Vector to angle in the particles' direction, it would send them initially towards the mouse, but I don't know how to make them all fall toward the mouse. Sorry.
  • MERMMERM Member Posts: 194
    ok, well im just going with a plus button to add more. would I have to add a wall and commands to keep them from going super fast and crazy out of bounds?
  • MERMMERM Member Posts: 194
    never mind i got it now. Thanks everyone!
Sign In or Register to comment.