The title is kind of a fancy way of explaining my problem. More simply, I'm trying to add a picture that consists of a circular gradient and creates a "torch" effect, giving the player only a small window of the map.
The problem is that it only stays centered on your sprite as long as you stay away from the edges of the map: as soon as you the edge of your screen touches the edge of the map, the picture stops moving in that direction, and you move out of the circle of "light".
I've been working on this problem with events for awhile now, and I'm getting nowhere. Any ideas?