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