Game Development Community

Can we have two t2dSceneWindow object???

by Tim Kin Chu · in Torque Game Builder · 06/15/2006 (3:44 am) · 3 replies

I have two xxx.gui. and I want to create a static sprite object on them. one gui is a playing screen and one is a option screen.

and I add a new t2dSceneWindow on option gui
new t2dSceneWindow( optionSceneWindow ) {
      canSaveDynamicFields = "0";
      Profile = "GuiContentProfile";
      HorizSizing = "width";
      VertSizing = "height";
      position = "0 0";
      Extent = "800 600";
      MinExtent = "8 8";
      canSave = "1";
      Visible = "1";
      internalName = "optionSceneWindow";
      hovertime = "1000";
      lockMouse = "0";
      useWindowMouseEvents = "1";
      useObjectMouseEvents = "0";
   };

and make a new scenegraph and add a new staticsprite on it
$optionScene = new t2dSceneGraph();
   
   $logog = new t2dStaticSprite() { scenegraph = $optionScene; };
   $logog.setImageMap(spLogoImagemap);
   $logog.setPosition( "200 200");
   $logog.setSize( "500 500" );
   $logog.setLayer( 1 );
   
   $optionScene.setDebugOn(0);
   $optionScene.setDebugOn(1);
   $optionScene.setDebugOn(5);
   
   optionSceneWindow.setSceneGraph( $optionScene );
   optionSceneWindow.setCurrentCameraPosition("400 300 800 600");


but it cannot be displayed


why????????

#1
06/15/2006 (2:19 pm)
Tim Is your question-mark key stuck? all your posts end with ???...

I'm pretty sure there was a recent thread about this someone asking the same question. Try browsing or searching through recent forum posts.
#2
06/15/2006 (5:09 pm)
As alex pointed out...

www.garagegames.com/mg/forums/result.thread.php?qt=45897 this was like 5 threads down from this one...
#3
06/16/2006 (3:55 am)
Alex: LOL, I think the same thing every time I see his posts. I picture someone sitting at their computer having a major meltdown. Like the classic internet video of the guy smashing his computer and then storming out of his cubicle. ;)