sf::Vector2f top;
top = sf::Vector2f(0,tools->ReturnView().getSize().y*.65);
if(players[0].ReturnSprite().getPosition().y <= top.y)
players[0].StopMovement(true);
Let me revise, I want to convert players coordinates to the screen coordinates (like mouse::getPosition())
For example my screen is 1200, and I want to not 65% of the screen to be off limits to the player.
top.y is = 540 which is right , but the players coordinates at the same place is equal to abou -290