0 Members and 1 Guest are viewing this topic.
Hey, just a question : how do you get that zoom effect?
dt = window.GetFrameTime();if (window.GetInput().IsKeyDown(sf::Key::Add)) view.Zoom(1.f - dt);if (window.GetInput().IsKeyDown(sf::Key::Subtract)) view.Zoom(1.f + dt);