Hello,
I've so many problems to implements isometric maps. It's looks good apparently but I have issues with colliding... i want to show the rect of the tile, and i cannot understand how to draw the rect for the iso tile of a 53*36 wide .png :
I use :
float size = sqrtf(powf((53 / 2), 2) + powf((36 / 2), 2));
mRect.setSize(sf::Vector2f(size, size));
mRect.rotate(45.f);
But it gives me this:
So, I have few questions :
1/ How can I put the blue rect, right onto the blue isometric tile?
2/ How can I implements the colliding system because look at the output console, it's colliding when the player rect goes underneath because the rect around the player goes over the blue rect even if the player is far away the real tile.