On a board-game I'm making I have one block (B1) in the top-left corner of the screen and one (B2) in top-right. B1 is 170 pixels wide, B2 is 128 pixels wide.
I need to scale B1 so its size is the same as B2. I tried this:
B1.setScale(B2.getWidth() / B1.getWidth());
But doing this AndEngine will erase the B1-block completely. Doing the reciprocal, B1/B2, the sprite is shown but a bit larger.
What am I missing here?