I m doing this little game using the 1stpersoncontroller asset and I want the run speed to increase. I am not a coder so please, very simple language please ^_^;.
Let say you press foward , you run to a speed, if you hit a object well you loose your pace and goes back to the default walk speed. But imagine this. A guy is running on a a boat used to launch planes from the sea okay , well i want the guy to run really really really fast after a little while so he could jump really far. Damn it s so hard to explain. for something so simple…
Understand ? Help ?
edit:
The speed starts increasing after a delay of let s say 3seconds then goes up fairly fast.
th script you gave me, does it work by just running with the foward buttons ? or is it another button ? If it is another button where do i set it : ) ?
You can set buttons and axis on the Edit > Project settings > Input
Here is a scene and the script Control.js that is an expansion of the one founded in the documentation to suite your needs
The variables had comments for you to understand what they do, and you can change them in the Unity Editor
To stop the acceleration and start all over again set time = 0.0 when the character strike an object or another event that stops the character and he will start walking again.