I looked around but I didn't really seem to find a whole lot of good solutions. I'm making a side-scrolling shooter where the screen automatically scrolls. Normally I had the player setup with 8 direction movement but I wasn't able to find a way to keep the player from the leaving the window area (restricting to the frame area works fine).

The best option I've found for doing this is set the player's movement to Static and then manually define events that check for the appropriate arrow key and make sure the player isn't outside the respective bounds. I'd like to think that there's a better way of doing this while still being able to use the 8 direction movement. Does anyone have any ideas?