I’m attempting to create a Vampire Survivors-esque mechanic where after a certain number of kills, a menu pops up where you can increase the players stats. I’ve got this working with movement speed and I’m trying to implement it with attack speed but with the way my attacking is set up, the attack speed is baked in at “Begin play” and I was wondering if there was a way I could alter this code to allow my Attack Speed float to be altered in game.
You have the timer handle. You can cancel that timer, and set a new timer, with a different interval, bound to the same action event.
An alternative is that you don’t set the looping flag, and instead set a new timer each time the timer fires, based on whatever the value is at that time.
The second option sounds like it could work pretty well, how would you go about setting that up? I’m very new to timers.
That has worked absolutely perfectly, thank you so much!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.