How can I continuously change the pitch of a sound at runtime to simulate, for example, the noise of a car engine at different rpm?
This is very necessary for making car racing games.
Sadly the only real way to change pitch in C3 (without extensions) is changing the playback speed. You can, of course, just make different sound effects for every speed, but that would be hard :(. Sorry.
Hi Liberador I've done up an example of how you might implement something like a car engine changing pitch - obviously the quality of the source material and how well it loops etc will have a lot to do with success, but I think something like this would work fairly well - example can be downloaded here
Develop games in your browser. Powerful, performant & highly capable.
OK, thanks a lot.