Increase player speed based on pickups counter

Hey everyone, currently I’ve got a pickup blueprint that handles the pickup counter aswell as a fixed number that when reached enables the player to finish the level. Now I want to add a function so that for every 10 pickups the player speed gets slightly increased. I’ve been messing around with the modulus node but havent been able to do it. Any help appreciated.


The nodes beneath the main nodes is what I tried for the speed but didnt work.

Try with this increment speed:

And try to add some print string to see if your code is working. :innocent:

Yes, the speed increment is working correctly now, but Im having some difficulties to make both branchs work, since both have different conditions, how can I connect them to the set node?

You can connect it to the false branch:

There also a node (flow control) called Sequence if you want to try it out.

Oh ok, yeah that works perfectly thanks for all the help!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.