How to zoom a mounted camera?
by Matthews_30 · in Torque Game Builder · 11/02/2005 (6:24 am) · 2 replies
Hi
I'm using the following function
but, I get this error:
I'm creating an RPG with a walking character that have mounted the camera.
please, if someone knows how to resolve this, post it.
I'm using the following function
sceneWindow2D.setTargetCameraZoom(10);
but, I get this error:
fxSceneWindow2D::setTargetCameraZoom - Cannot use this command when camera is mounted!
I'm creating an RPG with a walking character that have mounted the camera.
please, if someone knows how to resolve this, post it.
Associate Peter Robinson
function Zoom(%obj, %amount)// how much zoom, which object do we put it on? { SceneWindow2D.dismount(); SceneWindow2D.setCurrentCameraZoom(%amount); SceneWindow2D.mount(%obj,"0 0", 5, true); }Then you could make a call like this:
Hope this helps!
-Peter