Skip to main content
Cleanup
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

How to make Cameracamera follow Playerplayer on Y+ axis only

So, myMy player is jumping on sticks, endlessly going upwards, and if he fallsthey fall, its gameoverit's game over.

I want the camera to follow Playerthe player only when he movesthey move up (onlyie. only on Y axis), not down... if he movesIf they move down (fallsfall) he, the character dies... Camera, and the camera does not follow down them (only up).

How do I implement this behaviour in a Unity C# script?

How to make Camera follow Player on Y+ axis only

So, my player is jumping on sticks, endlessly going upwards, if he falls, its gameover.

I want the camera to follow Player only when he moves up (only Y axis), not down... if he moves down (falls) he dies... Camera does not follow down (only up)

How to make camera follow player on Y+ axis only

My player is jumping on sticks, endlessly going upwards, and if they fall, it's game over.

I want the camera to follow the player only when they move up (ie. only on Y axis), not down. If they move down (fall), the character dies, and the camera does not follow down them (only up).

How do I implement this behaviour in a Unity C# script?

added 14 characters in body
Source Link

So, my player is jumping on sticks, endlessly going upwards, if he falls, its gameover.

I want the camera to follow Player only when he moves up (only Y axis), not down... if he moves down (falls) he dies... Camera does not follow down (only up)

So, my player is jumping on sticks, endlessly going upwards, if he falls, its gameover.

I want the camera to follow Player only when he moves up, not down... if he moves down (falls) he dies... Camera does not follow down (only up)

So, my player is jumping on sticks, endlessly going upwards, if he falls, its gameover.

I want the camera to follow Player only when he moves up (only Y axis), not down... if he moves down (falls) he dies... Camera does not follow down (only up)

Source Link

How to make Camera follow Player on Y+ axis only

So, my player is jumping on sticks, endlessly going upwards, if he falls, its gameover.

I want the camera to follow Player only when he moves up, not down... if he moves down (falls) he dies... Camera does not follow down (only up)