Chasing Camera:
In many type of games, we will probably need our camera to "chase" our player - which simply means camera will be centred on current players X and Y coordinates. It would be easy to implement, but its pointless since AndEngine has already this feature built in Camera class and its extensions.
1. Setting chase entity:
Its really easy, in fact only one line of the code:
Its really easy, in fact only one line of the code:
camera.setChaseEntity(entity);
Where obviously camera object is your camera, and entity is your entity which should be chased by our camera (for example your player sprite etc)
HTML Comment Box is loading comments...