Srolling map

I’m trying to create a scrolling map, the idea is to make the map move in relation to the mouse position. So when the cursor is placed on the right, de map moves to the left, revealing the right side. How closer to the edge how faster, but within a square around the centre there is no respons. So you’ll have a border when the mouse get’s there the map scrolls. also with a certain angle , like when you are in the upper right corner, the map moves diagonally down and to the left. I’m not a really good scripter, so if someone could help.