Gaps when generating random maps

Get help using Construct 2

Post » Mon Mar 03, 2014 5:28 pm

Hi!

When I generate new random map, sometimes the result will be something like this:
Image

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?
B
16
S
5
G
4
Posts: 74
Reputation: 3,311

Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, Google [Bot], Jackriduk, Username05 and 30 guests