I am building a simple racing game.
i have a power up which on collision, is supposed to boost the car to double speed for five seconds, and then return to the original max-speed.
I tried this:
but neither seem to affect the car's speed at all!
I replaced it with 'stop' and that works fine.
Any idea what I'm doing wrong?
Develop games in your browser. Powerful, performant & highly capable.
If you set the MaxSpeed higher the car has to accelerate to increase the actual speed. You have to doeble the MaxSpeed and the Speed to achieve an immediate boost. If you choose a timelimit for your boost you have to make sure that you do not brake abruptly, but slowly reduce the speed: