How do I remove 3 or 4 pieces from same color diagonally?

0 favourites
  • 11 posts
From the Asset Store
HSV RGB Color Picker and Converter for Construct 3
  • remove 3 or 4 pieces from same color diagonally

  • what happened in this forum

    maybe not have pro gamers in this forum

  • Please read this post:

    construct.net/en/forum/construct-2/how-do-i-18/tips-posting-quothow-iquot-40390

    You provided zero information, that's why your question got no responses.

  • Please read this post:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/tips-posting-quothow-iquot-40390

    You provided zero information, that's why your question got no responses.

    simple with spawn destroi :D

  • point detektor for count

    with lines remover

    simple method

    chears on all pro gamers for help

  • Since you don't want to provide any more information, or your code, or your project file, I assume all you have is a bunch of circle sprites.

    You can use that green line sprite to detect groups of circles of the same color.

    Set origin point at its left end, set angle to 45 degrees.

    In a loop set line position to each circle, check if it is overlapping 4 circles, check if all 4 circles are the same color.

    If they are, mark them for deletion. Repeat for all circles on the board.

    Then set the line angle to 135 degrees and do the loop again.

    Then make the line size shorter, to cover only 3 circles, and repeat loops again for 45 and 135 degrees.

    Finally, destroy all marked circles.

    .

    Of course, this is an un-optimized method, there is room for improvement, but it should work.

  • Since you don't want to provide any more information, or your code, or your project file, I assume all you have is a bunch of circle sprites.

    You can use that green line sprite to detect groups of circles of the same color.

    Set origin point at its left end, set angle to 45 degrees.

    In a loop set line position to each circle, check if it is overlapping 4 circles, check if all 4 circles are the same color.

    If they are, mark them for deletion. Repeat for all circles on the board.

    Then set the line angle to 135 degrees and do the loop again.

    Then make the line size shorter, to cover only 3 circles, and repeat loops again for 45 and 135 degrees.

    Finally, destroy all marked circles.

    .

    Of course, this is an un-optimized method, there is room for improvement, but it should work.

    see how to worked my test

    epic-cori-81df5f.netlify.com

  • what happened in this forum

    maybe not have pro gamers in this forum

    We're game developers. Not gamers.

    And I think you might want to rethink your attitude on the forum. Just saying. You're definitely not getting much help with this attitude.

    Cheers!

  • .....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > what happened in this forum

    > maybe not have pro gamers in this forum

    We're game developers. Not gamers.

    And I think you might want to rethink your attitude on the forum. Just saying. You're definitely not getting much help with this attitude.

    Cheers!

    i mage without your help

  • Good for you, pal!

    See? That's the attitude I was talking about. Good luck on that. LOL.

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