Also: -You need to put renderCamera in the part where your code render the changes of the game. -To move background, you need to push the layer on cameraBG Then just call moveCamera somewhere in your code(Try in the one that control the player) to test it.