So my aim is to have:
1. A 1024x768 sf::RenderWindow
2. The game world being twice as large as that so 2048x1536
3. For getRotation() on a sprite not to break when trying to find the mouse outside of the sf::RenderWindow's initial 1024x768 size (it works perfectly within window co-ords)
Current window/view code:
SOLVED: Needed to parse the position in relative to the view(not window) with .mapPixelToCoords
//512,384 chosen as its the center of a 1024x768 window, and keeps centered on the sprite that moves the view.
Note: currently my sprite can move outside of the view but "projectiles" being shot towards the mouse seem to clip at the edge of the 1024x768 window as if there was an invisible boundary. My standard aTan2 projectile rotation code can be found here:
http://en.sfml-dev.org/forums/index.php?topic=12468.0 Note2: Im *guessing* it is somethign to do with 'view.setSize(sf::Vector2f(x,x))' or possibly creating a bigger window and applying zoom, I have tried both and failed miserably. I have also read the
http://www.sfml-dev.org/tutorials/2.0/graphics-view.php tutorial which was good but with the additional rotation error I need help!