I'll hug thehen if I ever see him.

Post your completed addons to share with the community

Post » Wed Jan 30, 2013 4:44 pm

@CrudeMik Haha, my hometown is Norwich so not far ;)

I'm not sure what you mean by adjusting the ranges independently? You can change the pitch with playback rate, but anything more advanced than that is limited by the web audio API I'm afraid.

Awesome music showreel btw, amazing stuff.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Jan 30, 2013 5:35 pm

Thanks!

By range I mean the audible distance. Actually I think you made it as roll-off rate. The rate at which it fades from quiet to full volume. Some emitters I'd want to cover a large area and some would be small.

It's not the web audio API that's limited, the API is able to do amazing things including reverb, doppler, filters, delays etc - the problem is that only Google Chrome currently supports the API and Scirra don't want to have two versions of the audio object.

I'm gagging for the day to have access to the rest of the API functionality within construct.

Maybe I should offer out my 50 again....haha
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Wed Jan 30, 2013 6:28 pm

Ah yeah, sorry I meant browser support for the web audio API.

-Distance(Player.X, Player.Y, Emitter.X, Emitter.Y) / 10

^ this code just replace the divide by 10, with divide by an instance variable. The higher the number the further the audible distance.

Hope that helps.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Jan 30, 2013 10:39 pm

yusss got it, now I'm just trying to stop playing the audio file when out of range... IT NEVER ENDS!
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests