Creating a Modern Sonic Boost.

Hello everyone! my first post here!

I’m currently making a 2.5D Sonic type game inspired by the Modern “Boost” Style they use these days for Sonic games. I’m attempting to get a Boost meter going like those games, but, I’m struggling to get:

  • acceleration when boosting feeling good. In game, if you just hold the button, he lerps quickly to his max speed. For now I just have a setting where his acceleration is multiplied if button is pressed and is boosting. Unsure how to get jump up to boosting speed feeling good.

  • when boosting, currently, if I let go of the stick and have the button held down, the meter will still decrease. If I let go then try and boost again while not moving, it won’t decrease. For testing, on tick I have a check where if the player is jumping AND + OR not moving on the ground they can’t boost. I intend to get this reworked later, this is just for debugging. I’d like to get it working to where if I push the button, it suddenly puts him at those Boosting values.

Any guidance on how to getting that lerp up in movement feeling better as well as the bug?

Thank you so much in advance, I’m still learning lots about Blueprint so, anything is helpful for learning!

Hi, hope I can help!

If you want to lerp the multiplier you can do this by checking for how long the player is holding the boost button down and having a min boost multiplier variable and a max boost multiplier that will slowly use the float interp function.

In the example I’ve shown you can adjust Min Speed Mult to be your starting boost and your Max Speed Mult to be the max boost you want. Interp speed is how quickly it will lerp between those speeds.

As for the bug, I think you will need a Min Boost Speed variable as well that shoot your character to the running speed you want them at before applying the multiplier. You can simply set that amount to your character’s speed value before applying the multipliers as long as the button is held down. It can be used in the same example function of Holding Boost I provided in the picture.

Please tell me if this works out for you. Big fan of Sonic games myself as well.

1 Like

Thank you very much! I’m going to test this right now and see if this helps get the acceleration closer to something like Forces or Shadow Generations. I’m aiming for that acceleration feel!

I was wondering, do you know how by chance to do make the Boost not require to be also moving? As in, the player should be able to start Boosting without needing to be holding the stick at all? Thank you in advance!