If you want the camera to follow your player, add ScrollTo behavior.
If you want to restrict player movement only to a selected area, there are many ways to do it - you can use Bound To Layout behavior, put solid wall around, or write some events which will clamp player position.