This this video I will show you how to create a basic power up for your game. In this first video we go over creating a speed boost! This video uses assets created in a previous video that you can find here! I plan on making several more power up’s in the near future so if you have any suggestions let me know.
I’m currently trying to create a different kind of boost if anybody can help ?
What I need is when you hold a key down you start to power up a boost, depending on when you release the button you get a bigger or smaller amount of boost.
I’m using blueprints and the boost I need is physics addForce, if I find the answer i’ll post it here but in the meantime any help is most appreciated
Thanks! I should have the tutorial up real soon - It sounds like a complicated topic, but it’s super easy to implement once you know how. You basically need to record the seconds the button has been held down and once the user let’s go of the button to stop recording the button held time, use the recorded time and then reset the recording time so the player can power-up again
So yeah, when I get a chance I’ll upload the tutorial for this - Using a “Super Jump” ala Saint’s Row IV as an example.
If you wanted to do this with a speed boost the easiest way I can think of is when a key is pressed add delta time multiplied by an amount to a variable “boost charge amount”, then on key released set the characters movement speed to equal (characters movement speed + “boost charge amount”) and possibly clamp the result at a max value if you dont want it to go too high, then set “boost charge amount” back to 0 for next time, add a delay of a few seconds and then set the movement speed back to the original value