How do I make blocks repulse some and attract others

0 favourites
  • 1 posts
From the Asset Store
25 high quality isometric ground blocks + sprite sheet
  • Hi there,

    I have a game I'm working on with someone that has a simple mechanic in theory, but it's proving to be very challenging for me in C2.. imagine a rainbow spectrum of blocks that are on a screen.

    red>--<orange>--<yellow>--<green>--<blue>--<indigo>--<violet

    what I would want is each block is attracted to the color(s) next to it, but repulsed by the others... so:

    orange would stick to red and yellow.. but any other color would be repulsed.. and so on..

    I saw some posts on this but they were dealing with platformers and generally from what i could tell "one way" thinking.. in my case it would be more like a top down perspective where gravity is 0.. not downward..

    Any tips / leads on this would be super appreciated.

    Thanks!

    Caleb

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)