A few weeks ago I mentioned that I would be working on a game where the player would have a small space ship which you use to explore a universe of randomly generated planets of different sizes and densities, consequently resulting in different gravitational forces. I’ve found some time to work on this and came up with a very basic prototype:
Using the built in physics engine that comes with Gamemaker, I’ve managed to make it so that every individual block attracts the ship through gravitational pull. The idea is that these blocks with their built in gravity can be used to create randomly generated planets. So far, it works well when I have two separate blocks, each block attracts the space ship, and the gravitational pull becomes stronger as you move closer. However, when I create a cluster to form a planet out of these blocks (as above), it seems to mess up the physics, and the forces the planet applies to the ship becomes erratic and unpredictable.
If I do decide to pursue this further I’ll definitely have to sort out this issue.