Decrease Speed Boost Overtime

Hey I was following a tutorial that made an object give a playerCharacter a speed boost. I wanted to go a step forward and have that speed boost decrease after a couple of seconds.

I thought I understood the execution flow but I couldn’t get it working. At first I added a delay after the destroy and then casted back my character movement and set the speed lower, that didn’t work.

Then I tried to add a delay that affected my characters speed after the end overlap but that didn’t work. Anyone have any ideas? Here’s what I had last.

Max Walk speed is 1500 in pic

b012ae6650b344ce8f7ef6a979f0f0e78ae3e668.jpeg

P.S. If yall can help me figure out a gradual decrease overtime too that would be awesome.

in your case, using a timer delegate would be a better solution in case the actor enter another volume that have additional boost.
check this post to see a usage reference.

Are you saying that I would need to redo the whole BP or just the bottom part to decrease speed? I’m confused about what is insta Dash in that example and what drives it.

Hello,
a fast solution can be a loop with a small decrease on tick or delay with a max/min value to stop increase/decrease (a while loop ). each tick/delay : set value = value - 1/+1

@Joe1029 not redo the whole thing but adjust. You can also use Fen’s idea but then you can’t guarantee the amount of time your boost go off, it’s less exact but for regular game it’s good enough.

Hello : While loop was not a good idea but this will may help you :
in bp : your begin overlap event (i changed only the set which can work for hp buff too for example )
in your character the “back to usual state” and a print to see if it works ^^ (“evolvingvalue” is a float i created with 0 as default value)