GameMaker Studio 2: Audio Emitters and Listeners

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • Learn how to make objects play sounds at different volumes depending on where the player is - you can use this for things like waterfall sounds, evil gates that throb with malevolence, and cats.
    [--- SUPPORT ME / SOCIAL MEDIA ---]
    Discord: / discord
    Patreon: / gamemakerrob
    Itch: gamemaker-rob....
    Twitter: / randomdude_sdu
    ======
    Credits
    ======
    Background animation by: AA VFX, Amitai Angor , / dvdangor2011
    Music: www.bensound.co... edited by GameMaker Rob

КОМЕНТАРІ •

  • @schaxor3807
    @schaxor3807 5 років тому +6

    Hello again GM Rob! This is exactly what I was looking for, cheers!

    • @GameMakerRob
      @GameMakerRob  5 років тому +2

      BS I'm glad you found it useful

  • @jrgamesbrx
    @jrgamesbrx Рік тому +2

    THANK YOU VERY MUCH, YOU'RE A LIFESAVER!!!!

  • @aaronmaldonado6562
    @aaronmaldonado6562 2 роки тому

    Thanks Rob!

  • @MartinHultquist
    @MartinHultquist 4 роки тому +1

    Thanks Rob :) Great stuff.

  • @bloodmancer4824
    @bloodmancer4824 11 місяців тому

    Thanks, could not get it to work for me and this is one of the most important things I needed to implement, used your tutorial to fix all of my issues.

  • @cesarferracin
    @cesarferracin 4 роки тому +1

    Awesome! Thanks!

  • @bim_buswick
    @bim_buswick 5 років тому +1

    A little confusing at first, but got the hang of it eventually! Thanks!

    • @GameMakerRob
      @GameMakerRob  5 років тому +1

      Yeah my technique still needs some work eh?

    • @bim_buswick
      @bim_buswick 5 років тому

      @@GameMakerRob Keep it at though man! Real potential here. This guide was really useful.

  • @RKCYOUTH
    @RKCYOUTH 3 роки тому +1

    thanks alot!!!

  • @DustyDynes
    @DustyDynes 6 місяців тому

    idk why, but the audio is inversed... when i got left the audio play left vice versa

  • @siennas254
    @siennas254 6 місяців тому

    For reasons I cannot figure out the audio from my emitter is not playing at all

  • @SnailYMC1939
    @SnailYMC1939 3 місяці тому

    i got a problem, when i change room, the emitters just stop working

  • @TheMuzykant
    @TheMuzykant Рік тому

    This was a pretty clear tutorial!
    Curious - what if I want a sound to play only as it passes right by the player? Like a bullet whizzing past the player as he is being shot at, making a crack sound as it breaks the sound barrier (in real life shooting). I don't want the sound to continuously play from afar, only when it reaches close to the player.

    • @toxic_shr00m
      @toxic_shr00m Рік тому

      I would recommend just having the code check the distance between the objects before playing the sound.
      Example:
      if (distance_to_object(obj_Player) < sound_range *[name this whatever and make it be how close you want the object to be before playing the sound]* )
      {
      *[sound emitting code here]*
      }
      *[then you can make some code for it to stop playing after a certain distance]*

  • @littlerogue4788
    @littlerogue4788 3 роки тому +1

    Hey is there any way to have the sound be based on distance but it always be heard at the same volume for both ears?

    • @GameMakerRob
      @GameMakerRob  3 роки тому +1

      I don't actually know! I haven't used those functions for some time but check them out and the description should hopefully give you a clue.

    • @stravvman
      @stravvman Рік тому +1

      audio_listener_orientation(1,1,1,1,1,1) worked for me

  • @junnelcabana8875
    @junnelcabana8875 4 роки тому

    how do you make the sound of the object whenever you decide to make the object move randomly

    • @GameMakerRob
      @GameMakerRob  4 роки тому +1

      try setting audio_emitter_position. It's not something I've used but it sounds like it should work - docs.yoyogames.com/source/dadiospice/002_reference/game%20assets/sounds/audio_emitter_position.html

  • @BlackwellVlogs
    @BlackwellVlogs 5 років тому +1

    🥇

  • @georgesaint5504
    @georgesaint5504 4 роки тому

    You have controls on obj_player but moving the emitter...confusing?

    • @GameMakerRob
      @GameMakerRob  4 роки тому +1

      What do you mean, sorry?

    • @georgesaint5504
      @georgesaint5504 4 роки тому +2

      @@GameMakerRob nevermind! confused myself,and thought it's obj_emitter moving))... Great Tutorial!!

    • @GameMakerRob
      @GameMakerRob  4 роки тому +2

      @@georgesaint5504 Thanks and np :) I wish I'd made a better demonstration as it IS hard to tell which square is moving, if that's what you're talking about :)