Distorted audio effect...

Get help using Construct 3!

Post » Mon Sep 04, 2017 7:10 pm

I've just added an audio effect (.wav file) to my game. It plays fine when playing over a normal audio player, but when it plays through the game it comes out elongated and distorted. Is there some action I need to add to remove this effect?

Cheers
B
9
S
3
G
3
Posts: 98
Reputation: 2,373

Post » Mon Sep 04, 2017 8:09 pm

This is almost always because you are playing the sound every tick. Make sure the sound only plays once. IE: On start of layout.
ImageImageImage
B
71
S
22
G
257
Posts: 3,790
Reputation: 142,696

Post » Mon Sep 04, 2017 9:16 pm

Can you explain how I do that? I'm still learning the basics.

Thanks.
B
9
S
3
G
3
Posts: 98
Reputation: 2,373

Post » Mon Sep 04, 2017 9:29 pm

You need to do some of the tutorials, otherwise you won't get far, and get frustrated when things don't work.

https://www.scirra.com/tutorials/top
ImageImageImage
B
71
S
22
G
257
Posts: 3,790
Reputation: 142,696

Post » Sun Sep 10, 2017 8:43 pm

Bootfit wrote:Can you explain how I do that? I'm still learning the basics.

Thanks.


In Construct, the entire event sheet is called every tick (nominally 60 times each second). Most likely, you don't want to start playing a sound every tick.

Instead, you probably only want to play the sound once when a particular event has occurred. For this you will need to use a "trigger". Many conditions are automatically designated as triggers, such as "On Start Of Layout", but some conditions are not, such as "health <= 0". In the latter case, you can add an additional condition called "Trigger Once While True". This will cause the event to only be called once, instead of every tock.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
52
S
17
G
26
Posts: 432
Reputation: 18,084


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests