Game Development Community

shaking camera

by Matt Ahrens · in Torque X 2D · 08/30/2009 (5:53 am) · 2 replies

i set up the camera to follow the player, but once the player gets far enough from the center, the camera starts to shake.

every tick the camera will get set to the players position.

#1
08/30/2009 (12:25 pm)
Quick question - are you moving the camera yourself by positioning it, or is the camera object mounted to the player? Based on your description, my guess is that you are manually moving the camera, but somewhere in your code, the camera position is set to (0,0) center just before you update it to the player position. As result, the farther you get from the center, the more noticeable the bouncing becomes.

John K.
www.envygames.com
#2
08/30/2009 (8:49 pm)
how do i mount the camera to objects?