Page 2 of 2

Re: The Squarehouse

Posted: Sun Dec 06, 2020 7:52 pm
by noahnadai
I actually tried that but it didn't come out quite as nice as i'd hoped. I was aiming for a sound that seems to fade in and out depending on how close you are. Like the 2D sound node in Godot if you're familiar with that one.

Re: The Squarehouse

Posted: Mon Dec 07, 2020 9:48 pm
by steVeRoll
Then you can make multiple audio sources for each laser, and use the setPosition method on them to position them in the same place where they are in the world (Make sure that they are also set to relative). Then, use love.audio.setPosition to set the position of the listener to where the player currently is.

Then you can play with the attenuation distance and rolloff to get it to sound the way you want.