I rendered a tiled map, with the help of slick2d, in my JFrame in Java. I can move my main character, but it is just that the character itself moves. I would like to do it that, if the player moves, the map moves and the player himself stays in middle of the frame. Do you have any suggestions on how to do that ?
JFrame, instead use
BasicGame subclass and
AppGameContainer (it's much better than
And to your problem, you have to create a
Camera class. That's all already covered here.