You keep creating new timer events with each sprint. That is what is causing the slowdown with each press. They are slowly stacking eating performance.
You need to create a handle to the timer and then clear it once you stop sprinting.
To create a timer handle drag out the Set Timer By event Return value and choose “promote to variable”, You can then use that newly created variable to clear the timer.
Even if I remove all the sprint logic, the game still slows down. Everything was still fine yesterday. I’m really hoping I don’t have to restart this project, as I’m quite far along in the level building part…
So when I switch over to a third person game mode, the problem is gone. I removed all the custom blueprints that I added to the firstpersoncharacter_BP, yet the problem still remains. Nowhere else have I changed anything. Where else could the problem then be if not in the firstpersoncharacter_BP?
The guy in the tutorial uses a thirdpersoncharacter, and I’m using firstperson. So, to create the HUD widget to show my stamina, I plugged it into ‘Add Movement Input’, as the node for his tutorial was a bit different…
One thing I’m worried about though, I set my ‘Game Mode’ to ‘BP_FirstPersonGameMode’. It seems to be working, but when I click on the game mode icon, it still shows the ‘World Override’ is in thirdpersongamemode. So I had to select it and edit the pawn class back to firstpersongame mode. Is this normal? I feel like I broke my project…