2
\$\begingroup\$

I am new to unity3d and want to develop a simple game like crazy cabie. I have to implement a z-index parallax for moving sprites towards the player and generating new sprite at the farthest z-index.

How can I do this?

\$\endgroup\$
3
  • 1
    \$\begingroup\$ You want to use the sortingLayer of the sprite renderer and multiply it by a large number such as 1000 for accuracy... When placing the pivot point in your sprite, make it at the very base of the coloured part of the sprite... Done... Unity actually have a tutorial on YouTube about this. \$\endgroup\$ – Savlon Aug 21 '14 at 7:43
  • \$\begingroup\$ @Savlon can u provide me link for the tutorial? \$\endgroup\$ – Nasir Mahmood Aug 21 '14 at 7:59
  • 1
    \$\begingroup\$ Yeh mate here is the link youtu.be/rMCLWt1DuqI \$\endgroup\$ – Savlon Aug 21 '14 at 8:14