How do I a continuous sound of car engine ?

Get help using Construct 2

Post » Sun Nov 09, 2014 4:10 pm

Hello (excuse my english),

in a car game.
how can I do to have a continuous sound of car engine when I press a button.
sound without cutting and clean.
And immediately stops when I release the button.

Thank you :)
B
12
S
3
Posts: 147
Reputation: 2,026

Post » Sun Nov 09, 2014 4:35 pm

....
You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Sun Nov 09, 2014 5:59 pm

Thank you it work's very well ! ;)
B
12
S
3
Posts: 147
Reputation: 2,026

Post » Sun Nov 09, 2014 6:20 pm

And I ask, does Construct allows to pitch sound? Higher RMPs of engine = Higher pitch of sound :]
B
6
S
1
Posts: 57
Reputation: 514

Post » Sun Nov 09, 2014 9:24 pm

korbaach > it work's with key of keyboard but when i want make the same thing with touch object for playing, the sound is jerky.
How do I ?
B
12
S
3
Posts: 147
Reputation: 2,026

Post » Sun Nov 09, 2014 9:50 pm

Try Touch -> Is Touching Object
B
6
S
1
Posts: 57
Reputation: 514

Post » Sun Nov 09, 2014 10:25 pm

Thank you Lazarus1988 but with "Is Touching Object" the sound is jerky.

I changed the way I do I run the sound to the speed of the car and it works much better.

-if "Physics X velocity" > 20 play sound "engine" looping
-if "Physics X velocity" < 20 stop "engine" sound
B
12
S
3
Posts: 147
Reputation: 2,026

Post » Sun Nov 09, 2014 10:28 pm

I also thank you, your solution might be usefull for me :)
B
6
S
1
Posts: 57
Reputation: 514


Return to How do I....?

Who is online

Users browsing this forum: uzumiapps and 31 guests