1
Graphics / Re: Move 2D-Camera with mouse
« on: April 12, 2015, 04:24:13 pm »
Thanks for your reply!!
It seems that it works now if I use this code:
Here it seems to work although the setCenter-command requires a float-vector.
It seems that it works now if I use this code:
...
sf::Vector2i Mouse = sf::Mouse::getPosition(window);
...
//Game-Loop
view1.setCenter(Mouse.x, Mouse.y);
sf::Vector2i Mouse = sf::Mouse::getPosition(window);
...
//Game-Loop
view1.setCenter(Mouse.x, Mouse.y);
Here it seems to work although the setCenter-command requires a float-vector.