I want to set the frame of asprite depending on its position relative to other instances of this sprite.
For example, if the sprite is located between two other instances, its frame will be 0, if it has no instance above him, its frame will be 1, etc.
I tried to set up my system by using system > pick by overlapping point on sprite image point but I do not even know if I do things the right way.
I have a little trouble with English so I added a capx, hoping it will be enough.
example
do you know a simple and effective system to reach my goal?