Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Warlock on February 17, 2003, 10:10:08 pm

Title: Sound effects use question
Post by: Warlock on February 17, 2003, 10:10:08 pm
Ok...this may be a bit of an odd thing but :

anyone know ofa program or way to set wav files up to play when you hit certain keys ? Basically I'm looking for a means to be able to get multiple wav files bound to various keys and use them in my next RPG ,...figured something like this would flow smoother than a standard media player.
Title: Sound effects use question
Post by: ZylonBane on February 18, 2003, 03:34:54 am
Flash.

(among many, many other possible solutions)
Title: Sound effects use question
Post by: Warlock on February 18, 2003, 07:38:29 am
Well I'm kinna looking for the easiest. Since I'm just setting this up for an RPG session then it's no longer going to be used I don't want / need to put alot of work into it.
Title: Sound effects use question
Post by: Stealth on February 18, 2003, 10:45:37 am
yeah, i was going to say "Flash" too :)
Title: Sound effects use question
Post by: Stealth on February 18, 2003, 11:09:19 am
try this...

you can either click on the buttons to produce the sounds, or use the keys: W, E, S, D.
Title: Sound effects use question
Post by: Carl on February 18, 2003, 11:39:44 am
volition made the sound effects with their mouths :nervous:
Title: Sound effects use question
Post by: Stealth on February 18, 2003, 11:40:26 am
:nervous:
Title: Sound effects use question
Post by: Warlock on February 18, 2003, 11:52:58 am
hmmm not bad ,... what I'm looking to do is be able to set up about 15-20 sound bits for easy playback during the game (Old school P&P RPG).

I'll take a look at the layout for that soundtest Stealth and see if I'll be able to dupilcate it ...thanks .)
Title: Sound effects use question
Post by: Stealth on February 18, 2003, 12:05:26 pm
well i don't know if you can use flash in-game... never tried any of that ;)

here's the FLA... feel free to edit it ;)

*attaches FLA*
EDIT:  approx. 591 KB

some things to note about the FLA that may throw you off:

1)  you'll see if you look closely that i have the sound clip attached in the "over" state of all buttons.  i did that first, then realized you wanted it to play not when you roll over or click a button, but when you press a key.  so instead of starting over, i put each sound in a movie clip, and then put:

on (keyPress "w") {
tellTarget ("bluebutton") {
gotoAndPlay (2);
}
}

(of course i named the movie that had the sound embedded as "bluebutton" instance, and so forth)

it should be pretty easy to understand once you take a close look at it.  to really do it good i would've put each sound in a movie clip, or not even do that, and then just make each button call the sound, instead of making each button call the sound and embedding the sound in each button... that's kind of repetetive.

good luck, let me know what progress you make with using Flash in-game... not sure how that will turn out, but i'm curious ;)
Title: Sound effects use question
Post by: Warlock on February 18, 2003, 01:55:03 pm
Quote
Originally posted by Stealth
well i don't know if you can use flash in-game... never tried any of that ;)


I'm assuming you're thining in game as in like in FS2 or such,,,,,I'm talking Star Wars RPG,...like the old school Dungeons and Dragons RPG,...pen,..paper....dice ;)

and computer for sounds in this instance heh

But thanks for the set up, I'll mess around with it tonight when I've got more time to really get into it :D
Title: Sound effects use question
Post by: ZylonBane on February 18, 2003, 08:27:40 pm
Quote
Originally posted by Stealth
   tellTarget ("bluebutton")

Dude, "tellTarget"? That's sooooo Flash 4.
Title: Sound effects use question
Post by: Anaz on February 18, 2003, 08:54:59 pm
dang...this is one more reason for me to learn directsound...