this is basically just a template that has a cube(acting as a car) that changes the pitch of an engine sound as its velocity increases. the way to set it up is all in the script.
UPDATE 06/02/2011:
New script uses gears:
Hi, First of al thank you for te script, very usefull. I like to ask, can you give me an advice, how can I add a start engine button to this script, or to my project. I mean, I like make my car, like in real life. First you have to start the engine and then hit the gas
I’m new in Python.
Thx for you work.
Hi, First of all, thank you for your work. I like to ask, can us give me an advice, how can I make my car using this script, adding a start engine button for start the engine first?
I’am new with Python…
You could use states (in logic bricks) have one state that waits for engine start (possibly plays a start engine sound). Another state would play the engine sounds along with any other thing that needs to happen only after the engine starts (like movement).
I would assume that there are plenty of tutorials about states, so it shouldn’t be to hard to accomplish what you want.
can i make a minimum pitch level? When my car starts to ride it starts with pitch: -12 but I want to change that to -5 or something. So that it will never pitch lower than -5.