footsteps sound FX

Started by The_Creep, Mon 12/04/2004 00:38:09

Previous topic - Next topic

The_Creep

Have assigned sound1 and sound2 to my foot step frames in the views editor, and the game says that they are playing in channel 3 when the frames appear, but I don't hear anything, all the other sounds and music play fine, does anyone have any idea why this is happening? I'm using mp3 files as sound1.mp3 and sound2.mp3
If you had nothing left, would you risk it all to change everything?

ElectricMonk

Have you tried using WAV files instead?
I had a similar talk with someone recently and he claimed that 1-2 seconds was "too short" for an MP3 file.
Never got around to trying it out myself to see what exactly he meant, though...

The_Creep

That did the trick, How weird, they won't play as Mp3 or Ogg if they are under 2 seconds long... that should probably be note somewhere in the tuts... now does anyone know how I can make it play different sound effects for when he walks on different regions?? (ie carpet, concrete, metal etc.)
If you had nothing left, would you risk it all to change everything?

Ben

Are you sure the sounds are in the right folder? They should be placed in the game's folder (same place as the room files) before you compile your game.. Do other sound effects work?

Monk: Your friend is stupid  ;) . I've downloaded lots of short sound effects in Mp3 format, and haven't had any problem..

strazer

QuoteHow weird, they won't play as Mp3 or Ogg if they are under 2 seconds long

I have just tested it with a 296ms long ogg file and it works flawlessly.

Quoteplay different sound effects for when he walks on different regions

I know there are different ways to do this, but in my test game I have a region, then in "Player walks onto region":

 SetFrameSound(1,1,3,4); // change footstep sounds to metal
 SetFrameSound(1,1,6,5);
 SetFrameSound(1,2,3,4);
 SetFrameSound(1,2,6,5);

and in "Player walks off region":

 SetFrameSound(1,1,3,2); // change footstep sounds back to carpet
 SetFrameSound(1,1,6,3);
 SetFrameSound(1,2,3,2);
 SetFrameSound(1,2,6,3);

Just be sure to adjust these if you change frames in your views or something.
I've just noticed that mistake in my game thanks to you. :)

The_Creep

Thanks stazer I'll give that a try.

Maybe its just my PC, but the OGG files WILL NOT play in AGS if they under 1.8 seconds,,,weird huh? I fiddled with it for a while and gave up, I'll use the waves, its fine
If you had nothing left, would you risk it all to change everything?

SMF spam blocked by CleanTalk