Hi guys, i’m wondering how can i make my character run for a limited time like in slender? that it automaticly stops at a certain amount of time running, and the energy builds up again? thanks
make a time dependant variable, when running substract the amount you need per frame, if the “energy” have 0 or less, then dont allow running
when not running add value to the energy per frame and stop adding when full. good luck