How do I check for multiple collisions on the same object?

0 favourites
  • 3 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • My current project has a Bullet object, which gets destroyed if it collides with another bullet (so far so good). What I want is to check when 3 bullets collide and make something special happen (like a big explosion). So far I haven't found a way that doesn't involve having a collision count variable that resets after a short amount of time (say, dt) and checking if it reaches a certain value. Somehow I don't think that's a very good solution, given that it's not impossible for 2 different pairs of bullets to collide at the same time, which is not what I want to check for.

    Any ideas?

    PS: I also tried comparing Bullet.PickedCount to 3 on the "On Collision" event, but it didn't work. When 3 bullets collide, all of them get destroyed, so I'm guessing that the engine treats the triple collision as 3 separate "On Collision" events

  • When you have a collision you could check the colliding bullet to see if it is overlapping more than 1 other bullet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, thank you for your reply

    How would that event look? I'm trying to picture it but can't

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)