This can be a bit of a mind bender. You actually need to move both the player's position and the view.
This is why, your map is likely larger than your view. So as you walk, the view needs to move so you don't run off the screen.
-Map size.
-View size and position.
-Player position.
--
If you mean making the view move smoothly, then the best way is to have the view move at a different consistent rate than the player. So you smoothly go through all of the pixels, so rather than say 1.3 + 0.8px you'd move at 1px. Because after 10 frames, you'll get a pixel jump with these example values.