hey I was looking through some games and I was wondering how to make a platform game (like mario) where you have a character and the window follows the character through the world. I have an actor in one of my games and the world is pretty big and the window covers about 1/4 of the world when the actor reaches the end of the window it just walks out of it and you have to move the bottom scroller to keep up with him is there anything I can do to have the window keep the actor on the screen (preferrably once the actor reaches about the middle of the window) so the window pretty much pans across when the actor is moving and gives the actor some lead room.
P.S. Also I am pretty new to java and I was wondering if you guys have any tips, and books or other resources where I should begin learning this java code

