Okay MJ, thanks for sharing!
[quote="Mary Jane":st3bcvt4]It remains to realize only two things: destroying pieces when the same three together, and resp. spawning of new blocks. [/quote:st3bcvt4]
Actually you would still need to set up the playfield generation in a way that there wouldn't be 3 matched at the beginning. Unless you want that for some reason.
[quote="Mary Jane":st3bcvt4]If you know how to make this please help me.[/quote:st3bcvt4]
I do know. I can't simply explain it in a few phrases I'm afraid. Will take a little more than that.
For starters: Add an array, use X and Y size of the array as the dimensions of your playfield.
In your cap it's 8x8 for example. Now don't put any blocks in your layout at the beginning, but create them on startup for each element of the array. For positioning you could use any object as reference point. Now loop through the blocks X over Y ascending and check always for the blocks which are positioned one and two units left and above the current block. If for one direction both match you'll randomize the block until both don't with a while loop.
That would be the beginning generally speaking... but as I mentioned typing everything out like that is very theoretical and I'm not a novelist either.
So what I will do is either implement it in your cap or more likely create a basic commented example of my engine. Either way, it'll take a bit of time. I'll see to it over the weekend. Have a little patience.