I apologize if my critique offended you. I wouldn’t have written anything at all if I didn’t care to help. That being said, I see too many people post vague questions or questions that are clearly going to need more explaining to understand so my comment while blunt is really just me trying to help you frame your question in a way to get the best responses without spending 3 or 4 posts just gathering information. As for your question, you can use delta time as said, you can also use a timeline for something like this which I am a fan of because it allows you a lot of control over what is essentially a tick function. As for the whole running in one direction thing there are many more things that would be helpful to know. Like is this a 3D or 2D game? Either way you’ll likely need to get and store the players forward vector and then continuously compare it to the player’s current vector to see if it changes if not continue adding stamina etc. there is a lot to think about with your system it’s hard to just say “do this do that”. But those are my initial thoughts