FPS stair climbing...

Blitz3D Forums/Blitz3D Programming/FPS stair climbing...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Store the target Y distance off the ground that you want the camera to reach, e.g. PlayerHeight.

Then you just code something like
 If CameraY<PlayerHeight then CameraY=CameraY+(PlayerHeight-CameraY)/10)


This will smoothly move the camera into position.

If the camera does not move into position fast enough just reduce the 10 to a smaller value.