Defining A Custom Key Map (I'm about to rip out my eyeballs)
by Kevin James · in Torque Game Builder · 07/09/2007 (2:05 pm) · 2 replies
Sup!
I want an options gui similar to the Level Builder's "OptionsDlg" only . . . different. I need the player to be able to specify keys for actions such as: Left, Right, Down, Up, Fire Guns, Fire Missile, etc. I tried to look at the actual OptionsDlg gui in order to figure it out, but enlightenment eludes me.
I even looked at the "keybinding.cs" (or something like that) to try to lessen my confusion, but that didn't help . . . at all.
I just want to give the player the ability to specify their own custom keys for the game interactions.
Any takers?
I want an options gui similar to the Level Builder's "OptionsDlg" only . . . different. I need the player to be able to specify keys for actions such as: Left, Right, Down, Up, Fire Guns, Fire Missile, etc. I tried to look at the actual OptionsDlg gui in order to figure it out, but enlightenment eludes me.
I even looked at the "keybinding.cs" (or something like that) to try to lessen my confusion, but that didn't help . . . at all.
I just want to give the player the ability to specify their own custom keys for the game interactions.
Any takers?
About the author
Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/
#2
Yeah, that's an interesting solution. Perhaps a little more unwieldy than what is present in the OptionsDlg, but if it works, it is good. I'll try that out, though I'm incredibly busy this week, so it may be a while before you hear whether it is works to my satisfaction or not.
Thanks!
07/10/2007 (7:07 am)
Hey, thanks for pointing that tutorial out Melissa.Yeah, that's an interesting solution. Perhaps a little more unwieldy than what is present in the OptionsDlg, but if it works, it is good. I'll try that out, though I'm incredibly busy this week, so it may be a while before you hear whether it is works to my satisfaction or not.
Thanks!
Torque Owner Melissa Niiya
tdn.garagegames.com/wiki/Torque_2D/Getting_Started/GuiControlListPopUp
Essentially, you could make dropdown menus with all of the allowed keybindings. Players could set which keys do what, then click an "OK" button to save their choices and load the next scene. You can bind all of the keys when the actual level/scene loads