Hi Justin,
I'm using the attribute manager to control the stamina my character has in my game for running. The stamina decreases while a button is pressed to make the character run with the speed change ability.
However, I noticed an odd issue where it seems that the stamina meter will decrease at different speeds depending on how many frames the game is currently running at (this might be an intended behaviour or the fault on my part). For example, if my game is running around 100 fps the stamina will increase and decrease as I am expecting. However, if the frames drop down to 30 fps the stamina will increase and decrease very slowly (which then essentially allows the player to run for a much longer period of time than I want them to be able to in the game before running out of stamina).
My guess is that the stamina is decreasing based on the fps instead of real world time. If this is the case, is there a good reason for it to decrease this way rather than decrease in real world time while the button is held down? Is there a way to make it so the stamina will decrease at roughly the same speed regardless of the framerate? These are the current settings I am using.
I'm using the attribute manager to control the stamina my character has in my game for running. The stamina decreases while a button is pressed to make the character run with the speed change ability.
However, I noticed an odd issue where it seems that the stamina meter will decrease at different speeds depending on how many frames the game is currently running at (this might be an intended behaviour or the fault on my part). For example, if my game is running around 100 fps the stamina will increase and decrease as I am expecting. However, if the frames drop down to 30 fps the stamina will increase and decrease very slowly (which then essentially allows the player to run for a much longer period of time than I want them to be able to in the game before running out of stamina).
My guess is that the stamina is decreasing based on the fps instead of real world time. If this is the case, is there a good reason for it to decrease this way rather than decrease in real world time while the button is held down? Is there a way to make it so the stamina will decrease at roughly the same speed regardless of the framerate? These are the current settings I am using.