How to move the nearest actors with same color around one to its position when pressed?

ferzhengferzheng Member, PRO Posts: 40
edited April 2015 in Working with GS (Mac)

Hello everyone!
I would like to ask for some help from you.
Currently i am facing a problem, as written in the title, i cannot find a way to make the nearest actors and of the same color around one actor to move to the place of the pressed actor once this one is pressed.
For example, i have 25 squares color red organized 5 horizontally and 5 vertically, what i would like to do is that when i press a square in the middle, only the nearest red ones (the 8 squares around it) go to the position of the pressed square and then destroy themselves leaving only the main one left, would that be possible?
Thank you!

Comments

Sign In or Register to comment.