I have this capx(See attachment).Oh New forum has attachments posting available?Thank you scirra.
At the start of the layout,global variable "next" chooses something from 0 to 30.
Then the Sp1 is created on Map.TileToPosition(next).
What I want to do is,If there is an object Sp1 already in that Area(Overlapping area),Create it in the nearest possible Map.TileToPosition without overlapping.
I can't find any way around this.Any help?
Develop games in your browser. Powerful, performant & highly capable.
Something like this ?
It's sometimes still created overlapping others
Thats because it just moves it 10 something to the right.
Oh well, here is another approach, makes it slide a bit on overlaps on start of layout.
That's ingenious.Thank you so much