http://www.filedropper.com/tetris
I link you the capX
It's a very simple "scanner" that should destroy only full lines of sprites when met.
Maybe i didn't get how for loops works ?
So, i created two for loops (and a third to destroy the line when full) nested one in another.
The first one is scanning vertically, while the second one inside scans horizontally. And this seems to work well
as the "witness" appears everywhere to confirm. But the "count" variable seems to mess up in the process.. :
It should be reset to 0 each new line, and count 1 each time it meets a sprite.
And if the line is full , should reverse back to destroy all this line.
Then continue scanning.
In other classical code its pretty easy.
But in C2 it seems i cannot get it to work right.
Can someone have the kindness to look at it ?
Lost here..