Hey everyone, so I'm trying to randomly populate a layout with trees on the start of a layout, but I don't want any of them to be overlapping. Currently on the start of the layout I run a repeat action 1000 times that creates an object at a random (X,Y) position. This (obviously) creates 1000 trees all over the place, but many of them overlap.
I can't think how to tell them to not spawn in locations where they'd be overlapping with another object. I'd like to populate the world in a more interesting way later on with other scenery objects, and figuring this out will give me the foundations for that. But trees first. Any help would be appreciated, thanks!
Here's a link to the playable project over on dropbox to provide some context:
WASD to move, click the trees to cut them, press I to open Inventory.