I’ve run into a new problem, this time with positioning. I’ve narrowed down the line that’s causing it–“block.y = block.y + block.height;” in SetOfBlocks.shiftDown. When I take it out, no problem. But with it in, instead of just dropping each block down by a block height, the affected blocks sometimes move up, and also often move about randomly within the X axis–although their new positions always keep them lined up with the ‘grid’, which is to say, within multiples of the block height and widths.
I don’t understand this behavior, especially since I don’t understand how changing an object’s y position can ever possibly effect it’s x position?
Any help is appreciated.
EDIT: Well, I just figured out why they’re doing it–because their container is rotated. Now I just have to think of a way to move individual objects down globally without moving their container and with their local ‘down’ being any of the 4 directions.