This site requires JavaScript, please enable it in your browser!
Greenfoot back
ElAdriano
ElAdriano wrote ...

2017/3/11

I have a problem with my Tetris-blocks not staying together.

ElAdriano ElAdriano

2017/3/11

#
In my project ( http://www.greenfoot.org/scenarios/19126 ) I wanted to create the Tetris-blocks out of 4 small blocks but when they start to fall the one in the bottom right corner of the "square" block waits 2 times before falling so that there is this "Z" shape. Also when I try to move it left and right the formation isn`t as it is suposed to be. But if I change the order in which I create these blocks it differs in the problems that occur. Thank you in advance
Super_Hippo Super_Hippo

2017/3/11

#
You should not have all these getObjectsAtOffset methods. Your blocks which are forming a tetromino should know that they are forming a tetromino and should move as together (or not if it is not possible). You could also refer to this discussion on how to control the tetrominos from the world.
You need to login to post a reply.