me = self;
view_yview[0] += ( me.y-(view_hview[0]/2) - view_yview[0]) * 0.1;
view_xview[0] += ( me.x-(view_wview[0]/2) - view_xview[0]) * 0.3;
This is the code I use to smooth camera movement in game maker. But it's going beyond the room dimensions; showing stuff that shouldn't be shown, as the camera should stop following the player at a point.
How do I achieve this?