Example use of GuiTSCtrl, GameTSCtrl, or ShowTSCtrl
by Demolishun · in Torque Game Engine · 09/28/2004 (6:00 pm) · 3 replies
I looked through the GUI code for the examples and now am more confused than I was when I started. I cannot for the life of me figure out how to use any of these controls to display an object on the screen with the regular GUI widgets. I tried loading ShowTSCtrl and it turned the screen black! I found where GameTSCtrl was created for each example, but that is all I could find other than a couple of functions defined for "onAwake" and "onSleep". Am I completely nuts? BTW I am using Torque 1.2 as my codebase.
Thanks,
Frank
Thanks,
Frank
About the author
I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67
Torque Owner Ben Woodhead
If you just want to display a shape then you may want to look at the show mod. It uses the ShowTSCtrl and doesn't use any of the networking. Check out the show directory in the example. A good tutorial to look at is TicTacToe (search in the resources). It actually creates a TSCtrl and displays shapes.
TicTacToe is not a good tutorial for game development itself since it does all the rendering and Scene Stuff itself but it will give you an idea of how the TSCtrl work.
Ben