Is there a way to check if a sprite is overlapping another sprite of the same name or family? I'm working on a townbuilding game and want to prevent players from placing buildings/objects on top of each other.
Develop games in your browser. Powerful, performant & highly capable.
You can add the sprite to a family and check if sprite is overlapping the family.
For multiple sprites in the family you can create a copy of the family, and use "Family overlapping FamilyCopy"
This is how I do it.
Late response but duplicating the family and checking that worked perfectly. Thank you to both responses!