Respawning Hero Problems

Hi,i was wondering if anyone could help e with a problem that has being bugging me for a while now as i experiment making games. It is hard to explain so i’ll use an example:

In a RPG type game,my hero starts on the centre of the stage. Once the character enters the house and leaves it he appears back at the centre of the stage.

Another example of a problem is when my character touches the end of the screen by moving forward,i want him to appear at the top of the next screen (frame) and if he moves down from this new screen i would like him to appear at the Top of the first frame.

I know this is all very confusing and i probably haven’t made it very clear.Could anyone help me out here?

Please Note that i know of different scrolling methods but i would like to use this one.