Jump to content


Photo

3d sounds help!


  • Please log in to reply
6 replies to this topic

#1 12toe

12toe

    GMC Member

  • GMC Member
  • 191 posts

Posted 15 August 2012 - 07:38 PM

Alright, so in my game, it's supposed to be dark, and scary. And it's in 3d.
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.
  • 0

#2 Sirosky

Sirosky

    GMC Member

  • GMC Member
  • 1476 posts
  • Version:GM:Studio

Posted 15 August 2012 - 07:41 PM

Game Maker's 3D sound kindof sucks... I prefer using FMOD for the sound system.

FMOD Sound System for GM by Icuurd
  • 0

#3 12toe

12toe

    GMC Member

  • GMC Member
  • 191 posts

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
  • 0

#4 Sirosky

Sirosky

    GMC Member

  • GMC Member
  • 1476 posts
  • Version:GM:Studio

Posted 15 August 2012 - 07:50 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? :whistle:

EDIT: And it's not an extension, it's a DLL, not that there's much of a difference anyways. :tongue:

Edited by Sirosky, 15 August 2012 - 07:55 PM.

  • 0

#5 12toe

12toe

    GMC Member

  • GMC Member
  • 191 posts

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? :whistle:

EDIT: And it's not an extension, it's a DLL, not that there's much of a difference anyways. :tongue:


Well, can you at least help me with that?
Right now, I have everything set up, I just need direction.
  • 0

#6 Sirosky

Sirosky

    GMC Member

  • GMC Member
  • 1476 posts
  • Version:GM:Studio

Posted 15 August 2012 - 08:27 PM

I'll give you the setup procedure.

1) Download the FMOD package:
http://www.host-a.ne...DSimpleDemo.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.
  • 0

#7 12toe

12toe

    GMC Member

  • GMC Member
  • 191 posts

Posted 15 August 2012 - 08:44 PM

Thanks, so much!

12toe
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users