Parallax effect with SKCamera

108 Views Asked by At

I am making a 2D platform game (like Mario). I move the SKCamera to left and right with 2 buttons (left and right). The x and y coordinates of the 'Mario-spite' is the same a the x and y coordinates of the SKCamera. I move the SKCamera and also the 'Mario-spite' with 2 px. How can I make a parallax effect (with 2 or more background layers/nodes) at the moment I press the left-button or the -right button. I am using SKTilemaps. The answers on Stackoverflow is not what I am looking for.

0

There are 0 best solutions below