Jump to content


Photo

Td Dynamic Sound Engine.


  • Please log in to reply
7 replies to this topic

#1 adrianbailey

adrianbailey

    GMC Member

  • New Member
  • 338 posts

Posted 06 November 2008 - 12:04 AM

Dynamic TD Sound Engine. Updated!
Now has 3d sound!


Posted Image

A relatively simple engine for a top-down shooter.
It works by bursting small objects on things that make
then noise and each burst carries an id of the sound.
When a collision occurs with a given object the sound is
played and the rest of the objects from the same burst
are also destroyed. Credit is very much needed.

Thank you for trying.

Be aware that this is still a work in progress and may
contain bugs and the coding is sloppy.

Things to come:
  • 3d-ish sound.
  • Better more accurate collisions.
  • A way better example on how to use it.


Woo! Check back when you can
++ Credit to AdrianBailey for sound engine.

That's how credit should look.


Edited by adrianbailey, 13 November 2008 - 11:01 PM.

  • 0

#2 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 06 November 2008 - 10:04 AM

so it does what now? sets the volume based on your distance to it? that can be done with a single line of code.
  • 0

poof_sig.png


#3 adrianbailey

adrianbailey

    GMC Member

  • New Member
  • 338 posts

Posted 06 November 2008 - 10:44 PM

Nooo, i know how to do that, that's simple.
What it does is check if you're in the same room as the thing creating the sound and if there are any obstacles around. Kind of like sound waves. It creates a burst of objects that bounce around like sound waves.
So yeahh, please just try it, you'll see what I mean when you do.
  • 0

#4 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 13 November 2008 - 04:47 AM

mm, I get it now. good idea. now just set up panning and volume, also it's not totally realistic.
maybe play the sound twice, at the same time.
one with like a quarter volume, unless you're far away, and then the other with the variables above.
even if you're not in the room, you'll hear the noise, if it's loud enough. so you play the quarter volume sound.

Edited by Newly Discovered, 13 November 2008 - 05:15 AM.

  • 0

poof_sig.png


#5 death-droid

death-droid

    GMC Member

  • GMC Member
  • 2600 posts

Posted 13 November 2008 - 05:50 AM

You should make it the longer the sound wave is "alive" it gets quieter
  • 0

Posted Image


#6 adrianbailey

adrianbailey

    GMC Member

  • New Member
  • 338 posts

Posted 13 November 2008 - 10:59 PM

yeah i actually added 3d sound a couple days ago i just never uploaded it. i hate that with gm6 it's mono though. but if you have gm7 reg then just convert it.

so here it is!

thanks for the comments. i'll be working on making a better example of how to use it too.
  • 0

#7 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 25708 posts
  • Version:GM:Studio

Posted 15 November 2008 - 06:01 PM

Interesting idea... Why not use a dll like Supersound or FMODsimple and then you can change the frequency of the sounds as they get further away (adding a doppler type effect)?
  • 0

U1FVsm3.png

40799.png


#8 adrianbailey

adrianbailey

    GMC Member

  • New Member
  • 338 posts

Posted 15 November 2008 - 06:16 PM

thanks you.
hmmm, that's a good idea. but i never really liked bundling dll's with anything. and anyways i'd like to keep this as simple as possible.
but i think i may make another version of it that does use FMOD probably, just for the people who prefer the power of it.
  • 0