Adds stamina bar and restricts dashing
Restricts infinite dashing by adding a stamina bar.
By dashing you lose stamina, and when you lose all stamina you can't dash.
You can configure the position of stamina bar and what image will be shown as stamina bar.
Max stamina, stamina regenerating, and losing of stamina are stored in a variable, so you can change maximum stamina and how fast is player losing/regenerating his stamina in-game.
You'll need the graphic of stamina bar from here
There is also .psd file included, in case you want to make small edits to it.
This is great, but it would be even better if there was a minimum stam needed before the player can dash again. As it is, I set stam consumption to 10 and regen to 1, but as soon as I had 1 stam back I could dash (For split second, but still).