Players are constrained to the screen in the methods that Lucid and Davioware suggested and it works great. Everything is working great except one thing:
The camera is set to always be at an average X point between all active characters. If playerA is on the edge of the screen and playerB or playerC moves the other direction the camera gets pulled towards the playerB/C. Since this forces playerA off screen, the player constrain code kicks in and moves playerA back on screen. Visually, it looks like the camera is sliding player until playerB or C hits the opposite side of the screen.
Tried setting up a check where if any player were on the edge of the screen the camera wouldn't move, but that didn't work because then any player could hold against the edge of the screen to prevent the cam from moving.
Tried doing the same but making it to the camera could only move in the direction of the constrain player but my results were extremely jerky.
I've been working on this problem almost exclusively for the past 4 days and haven't be able to think up a acceptable solution. Looking for a little help
caps at mediafire:[url:2owa8hh8]http://www.mediafire.com/?gntyimzzyto[/url:2owa8hh8] and rapidshare:[url:2owa8hh8]http://rapidshare.com/files/299906295/Help02.cap.html[/url:2owa8hh8]