Game Development Community

Selecting Audio objects through the TGB editor?

by Richard Skala · in Torque Game Builder · 03/10/2010 (4:49 pm) · 2 replies

Is there a way to select Audio objects through the editor?

Specifically, I'd like to be able to select from a list of AudioProfile names in a Behavior field, similar to selecting a t2dSceneObject or t2dAnimatedSprite, such as:

%behavior.addBehaviorField( SoundToPlay, "Audio file description", object, "", AudioProfile );

Is this possible? Has anyone gotten this to work?

#1
03/11/2010 (10:37 am)
Sadly something like this is not built in to TGB. There is a resource you can add as a Pro user however:

www.torquepowered.com/community/blogs/view/14184
#2
03/11/2010 (7:52 pm)
I think this is exactly what I'm looking for. Thanks!