The Squarehouse

Show off your games, demos and other (playable) creations.
noahnadai
Prole
Posts: 15
Joined: Sat Jun 27, 2020 10:43 am

Re: The Squarehouse

Post 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.
User avatar
steVeRoll
Party member
Posts: 131
Joined: Sun Feb 14, 2016 1:13 pm

Re: The Squarehouse

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 42 guests