ID:572925
 
(See the best response by Shaoni.)
Okay so i am working on a realistic simulator-type game and whenever my character sprints or jogs is there a way to slowly decrease his/her speed?

The attributes are:
fatigue rating (like rested, out of breath etc)
fitness rating (how quickly the player 'runs out of breath')
and i can add more if necessary..

I cant seem to find the proc that detects movement from the player. I've seen move and step, but i cant get it to work.. help please?
I forgot to mention:

People cant sprint forever.. and i cannot get the fatigue rating to decrease when the person runs.
Best response
mob
var
fatigue=0
fitness=100
sprinting=0
Move()
..()
if(sprinting)
if(fatigue==fitness)
sprinting=0
else
fatigue+=1


Something like that? I haven't tested that code, but I believe it would work.
that's exactly what i needed, thanks a bunch man!
No problem. :P It's a bit simple, but I guess you can fix it for your needs.
yeah it was one of those facepalm moments for me haha