Skip to content Skip to sidebar Skip to footer

Libgdx Camera - Setting Position Having No Effect

I cannot for the life of me figure out why my setting the camera position (both in the create method and the update method) have no effect. The update is being called by my main cl

Solution 1:

This question was answered by Menno Gouw. His comment above states that I didn't add the projection matrix of the camera to the spritebatch.

spriteBatch.setProjectionMatrix(camera.combined);

that line before the begin() line was all I needed to fix this.

Post a Comment for "Libgdx Camera - Setting Position Having No Effect"