0
\$\begingroup\$

I have created a game where I am moving my player on a platform. The car moves fine on the platform and the camera follows the car as well. My problem is that I wanted my background to move slowly. I am using a perspective camera and I am moving camera away to create a zoom out effect when my player jumps. Do you suggest I should move my background towards right so that it creates a simple slow effect? As currently it moves very fast.

here is my video demonstration : https://www.youtube.com/watch?v=xO_mEXo6mNA

\$\endgroup\$
  • \$\begingroup\$ i can't watch the video cause i'm on a work machine, but my first instinct is to move the background further away from the camera. This causes the angular momentum of the background to be less, resulting in a less dramatic parallax effect. \$\endgroup\$ – Stephan Jan 3 '18 at 14:21
  • \$\begingroup\$ simply move the background based on the offset of the camera in the x axis and multiply that by a number that is within a certain number range depending on the depth of your camera. \$\endgroup\$ – Sidar Jan 3 '18 at 16:59
  • \$\begingroup\$ @Stephan: that sounds like a good answer to me. \$\endgroup\$ – DMGregory Jan 4 '18 at 8:30
1
\$\begingroup\$

Try tiling your background and adjusting the offset to create an effect of motion. this will allow you to "slow" and "speed up" the movement of the background

here's the tutorial from Unity: Link to Unity Tutorial starting at the right spot

Link to Full Tutorial with code

\$\endgroup\$
1
\$\begingroup\$

Move the background further away from the camera.

This causes the angular momentum of the background to be less, resulting in a less dramatic parallax effect.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.