Just a few questions

1/ How do i detect collision on a scrolling map when i have heaps of tiles in my game ?

2/if the map has reached it maximum scrolling enable the character to walk .

3/ if when scrolling the character hits a non walkable tile stop the scrolling .

4/ when the character reaches a certian distace in the map start scrolling ?