Hi!
When I generate new random map, sometimes the result will be something like this:
And that is not fun. You know what will happen when people walk over the gaps.
I tried to fix this problem by setting instance variable "col".
If block is colliding with block -> col = 1
If col = 0 & Pick nearest to "self.y, self.x" -> Create object "block" on block.x + 75, block.x
It kinda worked but blocks spawn inside each other. Could you tell me how I could spawn block between instances that have var col as 0?