Game Development Community

Making a camera follow an object

by Geoldr · in Torque Game Builder · 08/22/2008 (6:41 pm) · 4 replies

How do I do this? Make a camera follow one of my objects?

About the author


#1
08/22/2008 (7:54 pm)
Function t2dSceneWindow::mount( t2dSceneObject, [offsetX / offsetY], [mountForce], [sendToMount?] )
- Mounts Camera onto a specified object.
#2
08/22/2008 (10:29 pm)
Ah, I have found this in the Documentation, but I can't figure out how to use this. I am new, do you have an example?
#3
08/22/2008 (10:35 pm)
// sceneWindow2D is the default name of your t2dSceneWindow object in the playScreen
// objectName should be replaced with a real object's name, you can give object's names in the editor
sceneWindow2D.mount( objectName );
#4
08/22/2008 (10:38 pm)
Oh great! Thank you! It works!