Help with overlapping
Hi,
I need help with overlapping. Here's my problem:
I have some actors that I move around the screen and they snap to grid (100x100). The actors use the same size images. All is working well, but I can't figure how not to allow the user to place them one over another, or overlap. It seems I can't use "collide or overlap", because when they are one next to another they are basically colliding (but not overlapping), due to the grid. And I want them to stay next to each other.
I tried with recording x and y positions and then checking if actor's position matches another, but I will have many actors and many levels, so it's impossible to check that with every actor's coordinates.
Any tips?
I need help with overlapping. Here's my problem:
I have some actors that I move around the screen and they snap to grid (100x100). The actors use the same size images. All is working well, but I can't figure how not to allow the user to place them one over another, or overlap. It seems I can't use "collide or overlap", because when they are one next to another they are basically colliding (but not overlapping), due to the grid. And I want them to stay next to each other.
I tried with recording x and y positions and then checking if actor's position matches another, but I will have many actors and many levels, so it's impossible to check that with every actor's coordinates.
Any tips?
Comments