Fill random area shape

Get help using Construct 2

Post » Sat Mar 16, 2013 2:56 pm

Hi,

i wonder if someone could give me some pointers to achieve this. My math skills are rubbish at best



The idea is to create an area at edit time using a number of cloned sprites. Then say how many blocks you need to fill this area.

At runtime the area is filled with the required number of random sized blocks.

Thanks
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Sun Mar 17, 2013 9:53 am

Well i have tried a few things now. I show the green blocks overlapping borders above which seems near on impossible to my logic.
I have got a bit closer by taking the blue area which is obviously 3 sprites and filling each one. It means there are borders but its a little easier to do.

Any suggestions still welcome of course
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests