A panning camera?

How would one make a camera track a cube but only on one axis, make the camera pan while tracking the player?

You could use a Track To actuator with the 3D tracking disabled


I think he means like vertex parent, but only 1 axis

import bge
cont = bge.logic.getCurrentController()
camera = cont.owner
if 'actor' not in camera:
    camera['actor']=bge.logic.getCurrentScene().objects['ActorName']
else:
    camera.worldPosition.x = actor.worldPosition.x

I would also like to know these things, anybody know. :frowning: