Feature Request: Sound Sources

Discussion and feedback on Construct 2

Post » Mon Mar 19, 2012 3:19 pm

Maybe this is possible already, but if not, sound sources would be a great addition to Construct 2.

I'm currently creating a game where you build and place autonomous robots in the (rather large) world. To make these robots feel alive, I've given them sounds. The bad part: even if the robots are off screen, I hear their sounds, making the game very chaotic (and even confusing) rather quickly.

Thanks for your consideration!
B
3
Posts: 10
Reputation: 520

Post » Mon Mar 19, 2012 3:32 pm

We do want to add more audio features, but audio in HTML5 is very limited at the moment and generally can't do things like this well. So maybe we can add it in future. However, for the time being you could try setting the volume depending on the distance from the screen, or simply not play sounds which are off-screen.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon Mar 19, 2012 6:56 pm

Thanks for the suggestion, that's what I've been doing = ]

I figured HTML 5 had limitations in this area. Figured I'd ask since I'm not that familiar with the platform.

Speaking of distance-based solutions, though, it would be great to have a simple System function in for distance between two objects. It might be a one-off for comparison of two values, but I find myself having to do the algebra a lot.



BTW, Construct is fantastic. I work professionally in game production, and this might be my new favorite prototyping tool for game ideas just for the sake of how easy it is to get an idea up and running.

I'll try to spread the word!
B
3
Posts: 10
Reputation: 520

Post » Mon Mar 19, 2012 8:44 pm

You have the system expression "Distance()" which does exactly what you described.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Mar 19, 2012 9:06 pm

I just discovered this and was about to reply so myself! My bad.
B
3
Posts: 10
Reputation: 520

Post » Mon Mar 19, 2012 10:16 pm

set volume to -(distance(scrollx,scrolly,object_making_sound.x,object_making_sound.y) / somevalue)

Somevalue should be from 1 to 100, with higher numbers making less fade-off as you move further away.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to Construct 2 General

Who is online

Users browsing this forum: totoe, Yahoo [Bot] and 6 guests