Scrolling terrain

Could someone please tell me how to make the scrolling terrain like on this game http://www.ihateyour.com/cgi-bin/bbs/YaBB.cgi?action=games;game=stickrpg . I already have the movement of the character but can someone provide me with the exact code because I have already searched the forum. The instance name for the character is ball and I want the terrain to scroll the way the character is moving if he is 2/3 of the way towards the edge of the screen he is moving

Cheers!:gm: