TheCrash159's Forum Posts

  • 2 posts
  • So, I've been playing around making a game based on planets and gravity, in wich you have to collide a bunch of asteroids together to make a bigger one and then throw it on the other planets.

    The thing is, I'm having a hard time trying to tell Construct 2 to add the correct size to the correct asteroid, here is how it should work:

    -When 2 asteroids collide, it compares their sizes;

    -The smaller one is destroyed;

    -The bigger one has the smaller one's size added to him.

    So far it works, but when an smaller astroid hits a bigger one, it is random wich one of them will be destroyed. I've aready tried using a variable for size on every asteroid, and then using it to compare the size, but it didn't work since I can't specify wich asteroid I want it to compare. So the main goal here is doing that.

    Please reply if you find a way to program this : )

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello I'm Gabriel, and I already have a game almost done, I've been developing everything alone, but now I need help with some stuff, so that's why I came here to the forums

  • 2 posts