SceneWindow2D.getCurrentCameraArea() returns NULL
by Brian Wilson · in Torque Game Builder · 04/11/2005 (10:21 am) · 5 replies
Quote:getCurrentCameraArea() Get Current Camera Area. - Retrieves current camera area as (X / Y / Width / Height). Note that this may be constantly
changing if the camera is in motion.
even when I type it in the console, I get nothing:
==>sceneWindow2D.getCurrentCameraArea(); ==>sceneWindow2D.getCurrentCameraArea(); ==>sceneWindow2D.getCurrentCameraArea();
Is this a known bug?
#2
That's weird. I just tried...
Is there anything special going on in your script?
What does the standard SDK return?
- Melv.
EDIT: Matt beat me. ;)
04/11/2005 (10:37 am)
Brian,That's weird. I just tried...
echo("CAMERA AREA: " SPC sceneWindow2D.getCurrentCameraArea() );... in the SDK and it works fine.Is there anything special going on in your script?
What does the standard SDK return?
- Melv.
EDIT: Matt beat me. ;)
#3
yeah think I used getCurrentCameraArea() for panning in my RTS GID
04/11/2005 (11:30 am)
Lol... I also typed a lot less... I'm lazy lol...yeah think I used getCurrentCameraArea() for panning in my RTS GID
#4
04/11/2005 (12:16 pm)
Doh, not sure why I thought that would return anything outside of an echo(); My bad. I was up way to late coding last night and I guess my brain is still bent.
#5
Glad you got it working.
- Melv.
04/11/2005 (12:25 pm)
I never actually spotted that you weren't using echo. Matt has a better eye than me! ;)Glad you got it working.
- Melv.
Torque 3D Owner Matthew Langley
Torque