|
Post by darkstar on Sept 1, 2017 9:19:26 GMT
^ under Airborne> Falling, you can find the isGrounded condition, but to get this airdash working you need to edit vThirdPersonController.cs
|
|
|
Post by sickscore on Sept 1, 2017 10:19:58 GMT
TL;DRTake a look at my Double-Jump Addon. Should be pretty easy, just add another animation (dash anim) for the second jump. Cheers, sickscore
|
|
|
Post by Strider on Sept 1, 2017 17:35:07 GMT
TL;DRTake a look at my Double-Jump Addon. Should be pretty easy, just add another animation (dash anim) for the second jump. Cheers, sickscore interesting... i'm having the same trouble with the animation cutting for the character fall... where exactly does this code fit? I'm already using the multiple jump code, but i want to jump and air dash too. Thanks!
|
|
|
Post by Strider on Sept 9, 2017 18:09:12 GMT
i kind of got the hang of it:
i set the action state to 1 in the vthirdpersoncontroller.cs, then i added the condition to fall ActionState=0 in the animator, my problem is that once my airdash ends, i can jump again, so i can keep jumping, dashing, jumping, dashing, and also when i touch the ground, my double jump gets a little jaggy and doesn't work properly.
Thanks for the help!
|
|
|
Post by sickscore on Sept 10, 2017 7:25:42 GMT
Just use a bool to check if you were grounded between dashes. Set the bool to true if you're grounded and false when making the dash. Then add an if statement before the dash action and check, if you were grounded. Just a proof of concept ;) bool _canDash = false; Update () { if (vThirdPersonController.instance.isGrounded) _canDash = true; }
MakeAwesomeDash () { if (_canDash) { _canDash = false; // resets when grounded again // TRIGGER SUPER AWESOME DASH } } What do you mean with the double jump gets jaggy? Can I get a video? Cheers, sickscore
|
|
|
Post by darkstar on Nov 18, 2017 7:19:15 GMT
Well I got the airdash working without any difficulties, I wasn't sure if people here were still trying to figure this out. Anyway just sharing my settings here. Roll animation replaced with Dash animation. My settings, Action state = 1 for both Jump and JumpMove. code edited in vThirdPersonController.cs, Video,
|
|