I have an issue that i have a tilemap where i want it to be rendered only in multiples of 16, even if the screen is not as such. So as a result, i have a 4 px (900 % 16 == 4) result on the top. I wanted to move the tilemap up 4 px to hide that..how do i do this?
i tried:
sf::Transform transform;
transform.rotate(50.0f);
sf::RenderStates state;
state.shader = &m_shader;
state.transform = transform;
m_window->draw(m_tileMapFinalSprite, state);
hoping that it could rotate the result, but that doesn't work. which means that it won't be able to translate the y value either..
so, i need to move the output up. I tried moving the sprite, but this results in cutting it off, not actually moving anything..