Hey all!
So. I'm trying to create a tetris-like game. I've got the spawning and the collision down. The thing I'm having the biggest trouble with now, though, is that I have absolutely no idea how to handle detecting if a row is full, and then deleting that row and causing the other pieces to fall.
What I've tried so far is set up "detector" sprites in each 32-pixel tall row, and have them count the number of non-falling sprites. There's ten rows, so when it reaches ten, I tried having it delete the row, and make all of the non-falling sprites become falling sprites, so they would fill in the gap.
Basically, it doesn't seem to be counting correctly, and if I enable the event that deletes blocks, it just goes crazy and deletes all of the blocks.
I don't think I understand unique IDs very well, if that's even the problem. =/
Any help?
Thanks!