The how do I FAQ has some examples of "custom camera" in the section "Scrolling / Camera", but none of the exact type you're talking about.
You will have to make your own system with events, using a camera as a separate sprite from your player and define your own "rooms" and the way for the camera to stick to it while you're playing the room, then program the transitions from a room to another.
It can be done, but it's quite a hard task for a beginner. I'd suggest to start with "easier" scrolling type to get used to C2 and making games, and in a later project program this camera system to your likings with the experience you'll have achieved.