GetCameraPosition()?
by Jeremy Tilton · in Torque Game Builder · 03/25/2005 (8:34 pm) · 7 replies
You set it with this:
sceneWindow2D.setCurrentCameraPosition( "0 0 100 75" );
How do we retrieve those numbers later if we need them? I tried getCameraPosition() and it isn't recognized.
sceneWindow2D.setCurrentCameraPosition( "0 0 100 75" );
How do we retrieve those numbers later if we need them? I tried getCameraPosition() and it isn't recognized.
About the author
#2
03/25/2005 (9:12 pm)
Yep, there it is....I knew the documentation was limited to T2D and not core torquescript and I guess assumed camera stuff was core torquescript, so I never checked. My bad, I'll try searching harder next time. Thanks though!
#3
03/25/2005 (9:16 pm)
No problem. I actually only saw that one earlier today while looking through the documentation at the DMV (so something good can come out of those interminable waiting times :-p).
#4
03/25/2005 (9:20 pm)
I find that MOST of the time while waiting for an answer I post, I find it myself. Unless people are particularly fast at answering like you!
#5
So to call this getCurrentCameraArea(), I need to use the fxSceneWindow2D object. In client.cs, it is called "sceneWindow2D". I cannot find where this is declared. Is this a reserved word, or is this the name of the instantiated object of the fxSceneWindow2d class? If it is an object, where is it defined in the script?
03/25/2005 (9:56 pm)
Oh, need to expand on this:So to call this getCurrentCameraArea(), I need to use the fxSceneWindow2D object. In client.cs, it is called "sceneWindow2D". I cannot find where this is declared. Is this a reserved word, or is this the name of the instantiated object of the fxSceneWindow2d class? If it is an object, where is it defined in the script?
#6
03/25/2005 (10:12 pm)
SceneWindow2D's defined in client/mainScreenGui.gui
#7
03/25/2005 (11:14 pm)
Cool, thanks!
Torque Owner Teck Lee Tan