Game Development Community

Problem with Pitch and Yaw after modifying and saving the PlayGUI!

by Valerie Butler · in Torque Game Engine · 07/13/2009 (3:49 am) · 2 replies

Hi Guys, I have what I think is a simple problem! My mouse movement controls the pitch and yaw of the camera and all works fine! Now I have just put a simple GuiTextControl on the bottom of my playGUI interface! When I go out of gui editor, and save the gui over the playGUI, and go into play mode everything works fine and the pitch and yaw can still be controlled by the mouse! But then when I reload the game, the pitch and yaw do not work! I have made no changes to default.bind or anything like that! The camera is just stuck facing the one way and can no longer be controlled by the mouse! If I replace playGUI with the old one it works again! Any suggestions as to what might be wrong? Thanks for any help!

#1
07/13/2009 (4:42 am)
If it's the same problem I'm thinking of just add the "noCursor" field to the "parent" control of your playGui -- there's a bug in the GUI editor that causes it to not save that line for some reason.
//--- OBJECT WRITE BEGIN ---
new GameTSCtrl(PlayGui) {
   canSaveDynamicFields = "1";
   profile = "GuiContentProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 8";
   visible = "1";
   helpTag = "0";
      noCursor = "1";
Not having that line will cause that behavior. Hope that helps.
#2
07/13/2009 (5:11 am)
Ha thanks, I found the solution on another thread and just logged back on to say id fixed it and how! Thanks michael, this solution works! :-)