Skiding and/or braking with 2D game

Hello, I am trying to make a 2 Dimentional platformer that is sort of like Sonic the Hedgehog. I want to have my character when he switched directions to brake and then turn to the opposing direction. I have tried some other ways but none of them have worked. So does anyone have a good script to get the job done?

Thanks in advance.

It would probably help to post what you have tried.

The simplest way to tweak character movement is to change the Input setting for your keys. On the top bar, Edit->ProjectSettings->Input.

Under Vertical (up/down arrow keys) you can uncheck `Snap` (Snap makes you change directions faster.) You can also play with Sensitivity (how fast you speed up) and Gravity (coast to a stop.)

If you can't quite get what you want with that, then you'll have to hand-code simple "physics" -- speed and thrust. You can tweak that to do whatever you want.