Stuck on Dash Blueprint
So I'm having some issues developing a "Dash" feature.
Basically when triggered I want to make it read current velocity and increase it based on the current player direction.
I know Launch Character is the best method to do this, and it's best to make sure it can be applied if the player is on the ground. So I have the following simple blueprint so far.
Basically it works, EXCEPT, if the player is stationary he/she "Jumps", I ultimately only want to make it so that this dash will work if the player is in motion (never stationary).
What I have tried (and did not work) I've tried converting the vectors of Get Velocity and ensuring X & Y are not 0. "Get Movement Component" -> "Is Moving On Ground" (for some reason this is always true as long as the player is on the ground even if stationary) I've tried making it based on a few other vector options but Get Velocity has been the best one for this purpose.
What I know, I know I'm jumping because no matter what in my current situation the Z velocity is getting set at +250 (half my normal jump velocity)
I think I may just be a little frazzled and my brain isn't firing all my synapses because I know it's possible to do this with blue prints I'm just completely fried as to how right now.
asked Apr 08 '14 at 06:23 PM in Blueprint Scripting
Aaand yep it was just a frazzle, not long after I got this posted I came up with the simple solution (boy can I be blank-stupid sometimes)... but we all have it...
So to explain flow here, we grab the velocity, if it isn't 0 then we continue on, "Can Jump" is the function I basically use to detect if the player is on the ground (if they can't jump they usually can't dash), I know this isn't the "proper" usage, but it works effectively for this application.
Of course, after that I in turn calculate velocity increased with a multiplier, now since when you're on the ground your Z velocity remains 0, I add 1 to it before the multiplication at which point I increase the 1 by 250 (half my second jump in my double jump velocity)
This looks great FlyingMongoose. Quesiton, will people be able to Dash then Double Jump? That just seems like something fun to do in a game.
answered Apr 08 '14 at 07:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here