Confusing. Need help..

  • Hi Guys,

    Okay, so i have a blue ball, and some blue, green, and red bricks.

    There are 3 blue bricks besides each other. And i want to destroy them all when the blue ball hits them.

    But if there are no blue bricks besides a blue brick, i dont want all the blue bricks to get destroyed.

    lol, does that even make sense? :P

    Anyway, in short... Im trying to destroy "pinned" same color bricks.

    Like in all Bubble shooter games. But this one is killing me, i really cant seem to get it working.

    Any help, examples or just anything would be a great help!

  • I would check for objects of that type that are less than or equal to the size of the object that are of the same type. If they exist, I'd destroy them and run the same test on them as well.

    If that made sense.

  • Hmm, still a little confused. Can you post an example?

    But wouldt it destroy all? i mean im only looking to destroy those who are connected / besides each other.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I figured it out. Using Floodfill. :- )

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