title: Make Object Move Smoothly In C++-SFML
body: <p>Hey Guys I'm a Beginner in Game Development with C++ and Sfml I Wrote this code to make that purple Object move,but the problem is that it doesn't move smoothly,  it's like the text input, How to fix That ? </p>
  
  <p>Here Is My code :</p>
  
  <pre><code>#include &lt;SFML/Graphics.hpp&gt;
  
  int main()
  {
      sf::ContextSettings settings;
      settings.antialiasingLevel = 12;
  
      sf::RenderWindow window(sf::VideoMode(640, 480), "Ala Eddine", sf::Style::Default, settings);
  
      sf::CircleShape player(20, 5);
      player.setFillColor(sf::Color(150, 70, 250));
      player.setOutlineThickness(4);
      player.setOutlineColor(sf::Color(100, 50, 250));
      player.setPosition(200, 200);
  
      while(window.isOpen())
      {
          sf::Event event;
  
          while(window.pollEvent(event))
          {
              if(event.type == sf::Event::Closed || sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
              {
                  window.close();
              }
              //MOOVING PLAYER////////////////////////////////////////
              // moving our player to the right                     //
              if(sf::Keyboard::isKeyPressed(sf::Keyboard::D)){      //
                                                                    //
                                                                    //
                  player.move(3, 0);
              }
              // moving our player to the left
              if(sf::Keyboard::isKeyPressed(sf::Keyboard::Q)){
                  player.move(-3, 0);
              }
              // moving our player to the UP
              if(sf::Keyboard::isKeyPressed(sf::Keyboard::Z)){
                  player.move(0, -3);
              }
              // moving our player to DOWN
              if(sf::Keyboard::isKeyPressed(sf::Keyboard::S)){
                  player.move(0, 3);
              }
          }
  
          window.clear();
          window.draw(player);
          window.display();
      }
  
      return 0;
  }
  </code></pre>