Car engine sound question

For questions about using Classic.

Post » Fri Aug 13, 2010 9:55 am

I want to create an engine sound that slows down when the car slows down and speeds up when the car speeds up ,How can i do this?.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Aug 13, 2010 10:07 am

try to use one idle sound file for engine sound
and then when you want to speed up - pitch up that sound and pitch down for slowing down
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Fri Aug 13, 2010 10:11 am

I don't know if this would do exactly what you want, but the XAudio object has an action to adjust the frequency of your sounds, maybe you could try adjusting it based on the speed of the car somehow?

I don't have much experience with the XAudio object so i can't help much more than that :wink:

EDIT: shinkan beat me to it :P
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Fri Aug 13, 2010 10:15 am

sorry :wink:
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Fri Aug 13, 2010 11:38 am

Yeah what they said, adjust frequency ratio to lerp(lowestfrequency,highestfrequency,currentspeed/maxspeed)

You'll have to mess with the frequency ratios to determine what sounds best for high and low
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Aug 15, 2010 6:06 pm

I took the advice and it works like a charm ,Thanks everyone.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests