How do I make blocks repulse some and attract others

Get help using Construct 2

Post » Wed Jun 11, 2014 2:45 pm

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
B
61
S
10
G
2
Posts: 992
Reputation: 7,310

Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky and 10 guests