Hi, I am trying to add a Throttle/Race effect in my game. I want my sound pitch to go from 0 to 1 when player’s car is moving forward and to go from 1 to 0 when it is reversing (Just for sample project, in original game it’s different), but the main requirement is that I want to tweak the value of pitch from 0 to 1 and 1 to 0. But it does not work, the sound just get’s noisy to feels deteriorated. Need help.
How can I change the pitch of a sound? I have also tried to change the pitch of Sound Component but it also does not work.
Editor Link: PlayCanvas | HTML5 Game Engine
Sound Script: PlayCanvas | HTML5 Game Engine
Note: Press “Up Arrow Key” to change pitch from 0 to 1 and “Down Arrow Key” to change the pitch from 1 to 0.
Thanks.