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.


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.

Posts: 939
Reputation: 6,545

Return to How do I....?

Who is online

Users browsing this forum: blue visionary, namaewayukidesu, senecaa and 10 guests