i am making a basic game with an ability called rush. It works by the player spinning the scroll wheel up, and the FPS character darting in the direction in which you are pointing, i made this basic code to check if the mouse wheel is going up, but how do I make the dash part?
So a few things here… i would look into using the Enhanced Input system so you don’t have to use Tick, not that for this case it would be expensive… but all the time vs when its being requested is certainly an improvement, and saves your event tick to be used easier later if needed
you want to grab your character movement component on the left under components, drag out from that and set max walk speed…
With the Enhanced Input When you scroll up you can return an axis value, by default between 0 and 1
and use this with i think a Lerp node to go between two values…
Should reset to 0 after you stop scrolling if im not mistaken… worst case you use a timeline to establish the values you need and can stop it when complete fires a.k.a when you stop scrolling and it’ll never go above the max value you set