3d sounds help!
#1
Posted 15 August 2012 - 07:38 PM
With that out of the way, 3d sounds. Before you well at me, yes, I have used the manual to look it up. There are four functions that 'describe' a 3d sound.
The problem is, the manual only helps so much. If someone could just show me an example on how to, at least, set a 3d sound up, would be amazing.
Thanks,
12toe.
#2
Posted 15 August 2012 - 07:41 PM
FMOD Sound System for GM by Icuurd
#3
Posted 15 August 2012 - 07:47 PM
Game Maker's 3D sound kindof sucks... I prefer using FMOD for the sound system.
FMOD Sound System for GM by Icuurd
Honestly, I'd rather not use extensions. Anyone else?
12toe
#4
Posted 15 August 2012 - 07:50 PM
EDIT: And it's not an extension, it's a DLL, not that there's much of a difference anyways.
Edited by Sirosky, 15 August 2012 - 07:55 PM.
#5
Posted 15 August 2012 - 08:15 PM
It's something you're gonna learn to love later. What if I told you that Game Maker can only play one 3D sound at a time?
![]()
EDIT: And it's not an extension, it's a DLL, not that there's much of a difference anyways.
Well, can you at least help me with that?
Right now, I have everything set up, I just need direction.
#6
Posted 15 August 2012 - 08:27 PM
1) Download the FMOD package:
http://www.host-a.net/u/icuurd12b42/GMFMODSimpleDemo.zip
2) Open Gmfmodesimpledemo.gm6 and export the scripts
3) Import the scripts into your game.
4) I'm not sure about you, but I store all my sound files externally in .ogg files, MP3 files are larger and may not have better quality so I stick with ogg files. If you need a converter I can give it to you.
5) Create a sound loading object and place in the first room and put this code in Game Start event
LoadFMOD();
FMODinit(100,0);
FMODSetWorldScale(.1)
FMODSetDopplerFPS(room_speed)
//Following is just example code, this is for loading 3D sound
global.expsnd[0] = FMODSoundAdd("sfx\wep\exp1.ogg",true,0);
FMODSoundSetGroup(global.expsnd[0],2);
FMODSoundSetMaxVolume(global.expsnd[0],.55);
FMODSoundSet3dMinMaxDistance(global.expsnd[0], 250,800);
6) To play the sound, just use something like this:FMODSoundPlay3d(global.expsnd[0],x,y,0) FMODInstanceSet3dPosition(self,x,y,0)7) Look at the example provided in the FMOD package for help... I'm still learning FMOD myself, and it's pretty dang handy.
#7
Posted 15 August 2012 - 08:44 PM
12toe
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











