Game Development Community

text input in TGB

by David Deschenes · in Torque Game Builder · 07/11/2009 (6:06 pm) · 2 replies

ok im a decently knowlegable person when it comes to c++ but im new to torque and i was wondering how to get user input from the keyBoard. lile if i wanted them to input the name of the file that they wanted to load without using the console menu, would i make a tilemap and set cursor to it? or do i create a text object? i would love any help that i can get.

#1
07/12/2009 (5:59 am)
You'd use the GUI system, usually. Design a little GUI with a text box and pop it in when asking for input.
#2
07/14/2009 (8:45 pm)
I use a keymap, append each keypress to an internal string, update the text object as well.