Fill random area shape

  • Hi,

    i wonder if someone could give me some pointers to achieve this. My math skills are rubbish at best <img src="smileys/smiley5.gif" border="0" align="middle" />

    <img src="http://dl.dropbox.com/u/1685424/areafill.jpg" border="0" />

    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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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 <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)