Allowing motion mid-air momentarily on key press.
I would like two distinct jump behaviors available to the same character at different times pending keypress. The character may jump once and illicit standard jumping behavior (Current Velocity maintained, character proceeds in a basic arc with little input once in progress). Upon initiating a double jump ( I have successfully followed the tutorial on doing so) I'd like to allow the player relatively free movement on the X and Y axes so they may essentially change directions midair. I have tried inserting add movement blocks pulling their parameters from default input detection blocks as well as creating a unified XYZ vector, but neither of these seemed to work. Is this some sort of property I'll need to modify elsewhere?
asked Aug 08 '16 at 06:50 AM in Blueprint Scripting
The simplest way you could do this would be to Set the value of Air Control to 1.0 somewhere in or after your double jump logic. This would allow for complete direction changes in mid air which is what you're going for if I'm understanding you correctly. Then to reset the Air Control so it wont't be applied to the first jump you can Set Air Control back to its default value (something like 0.1) off of Event On Landed. And you can play around with the values (in the highlighted section below) to get the feel you're hoping for, but that's the gist of it. Here's an example of how you'd do it in blueprints.
answered Aug 08 '16 at 02:57 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here