_sceneGraph.Camera
by Aaron Klaser · in Torque X 2D · 12/10/2010 (5:42 am) · 4 replies
So this issue keeps popping and pestering me. I'm not 100% why it's doing it. It all appears to be right but still. On Game.cs the are two lines T2DSceneCamera camera = _sceneGraph.Camera as T2DSceneCamera;
I had this proboblem original when using the Platformer Demo but switched to using the Platformer Starter Kit and havent had it pop up till now. I'm to display game over, so this is here to dismount the camera and reference it's position to display the gameover in the center of the screen. But get an error when my lives = 0. While debugging VS tells me to add new but thats diffinitly not right... Is it. Any. Idea as to why this happens, what's causing it, and how to fix it.
I had this proboblem original when using the Platformer Demo but switched to using the Platformer Starter Kit and havent had it pop up till now. I'm to display game over, so this is here to dismount the camera and reference it's position to display the gameover in the center of the screen. But get an error when my lives = 0. While debugging VS tells me to add new but thats diffinitly not right... Is it. Any. Idea as to why this happens, what's causing it, and how to fix it.
About the author
#2
01/31/2011 (12:57 pm)
Hey Aaron, Thanks for the reply. The Problem was that any time you make changes to the .txscene it removes the name of the Camera in the xml code. a simple find and replace fixes this issue but unfortunately you must do this every time you make a change to the scene. To add to this, if you remove an attribute like lives from you character component, it will try to replace that every time as well so you have to remove it every time. Frustrating but effective.
#3
01/31/2011 (1:46 pm)
I believe that this has been fixed in the 4.0 CEV Builder. Are you using that?
#4
It has a link to the fix: trac2.xp-dev.com/TorqueX_3.1.5/wiki/TXB%20Camera%20Name%20Fix
If you don't have an account to access that, talk to Pino :)
02/07/2011 (12:33 pm)
Check out this thread: www.garagegames.com/community/forums/viewthread/118169It has a link to the fix: trac2.xp-dev.com/TorqueX_3.1.5/wiki/TXB%20Camera%20Name%20Fix
If you don't have an account to access that, talk to Pino :)
Torque 3D Owner Aaron Scovel
If this is still an issue, what is the problem? What does the error say? Make sure to always post your error or code, otherwise we have no clue to what the issue is.