This has probably already been answered but I couldn't find it.
This is what I am trying to do.
I have many building. if i'm on the left side of the building a sprite behind it shows the left side as i pass in front of it it shows nothing on either side but as i reach the right it shows the right of the back sprite.
Here are some images to give an example:
But i want many buildings. I tried parallax but it does not stop the image from moving in the background ( I know it was a long shot but... )
Any suggestions to fake the parallax effect? it doesn't have to be smooth either. I was thinking something like on collision or when overlapping but i'm not sure.
Thanks for your time.