Game Development Community

Assigning sounds to keypresses?

by Eric Rea · in Torque Game Engine · 03/02/2007 (6:35 pm) · 23 replies

Hello, this is my first time posting and i just wanted to start by saying what a wonderful community you have here. i have rescently bought TGE and played some in TGB but i have very little scripting knowledge... with that said i am wondering if there is an easy way to assign custom sounds to keypresses in either tgb or tge?

example: ingame a player can hit any number key from 1-10 and a different custom sound plays.

anyone have any ideas? please keep in mind i am an artist with little to no scriting knowledge!

thanks in advance!

- eric
Page«First 1 2 Next»
#21
03/17/2007 (6:02 pm)
Your config.cs file doesn't have the 0-9 keybindings listed which would explain why nothing is happening. Try deleting the file and running the game, it should create a new config.cs file with the new keybindings.

Aside from that it all looks good.
#22
03/17/2007 (6:06 pm)
Yea.. i noticed that as well. still no dice. did you notice that bit on the init.cs file about the openal driver? think that might be an issue?
#23
03/17/2007 (6:09 pm)
Yea.. i noticed that as well. still no dice. did you notice that bit on the init.cs file about the openal driver? think that might be an issue?
Page«First 1 2 Next»