How to make a side scroll like mega man

How to make a map off the screen… So if you go in or out of a door it’s a new background map… In full screen…