Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content


Files

Previews only

Souls-like Part 12 Backstab - Unity Tutorial (Advanced)

Want more? https://www.patreon.com/csharpaccent? Get it here https://gumroad.com/l/GFQqV For freelance inquiries unityguru23@gmail.com Other: --------------------------------------------------- My Art tutorials www.sharpstance.com Asset Store Page https://goo.gl/wpHEHO Carnivore Land on Steam http://goo.gl/qlTOuU Social: ------------------------------------------------- Subreddit: http://goo.gl/YSLmVT Twitter: https://twitter.com/AccentTutorials https://twitter.com/NVicBoss Download the animations from this folder https://goo.gl/oZ9cM5

Comments

Anonymous

I'm not sure what causes this, but both backstab and parry were working, and around the time when UpdateActionsWithLeftHand() was merged into UpdateActionsOneHanded, enemies cannot be parried. The collider opens and closes, but has no effect. I went back through everything, and while the code is accurate to what was in the video, it looks like my parryIsOn never fires. I'm seeing 3 new errors though, in AnimatorHook's OnAnimatorMove function: rigidbody.velocity assign attempt for 'Enemy' is not valid. Input velocity is { NaN, NaN, NaN }. UnityEngine.Rigidbody:set_velocity(Vector3) Wondering if there is an issue with the core code, of if these velocity errors are just stopping the parrycollider and parryflag functions to be read(?)

csharpaccent

I think I actually forgot to assign a few more variables for the parry when copy actions and I did that on a later video, so either do a manual check the variables to make sure everything is copied or just continue with the rest of the videos till you encounter it. The error you are getting is mostly like when you start the game on pause mode, it means that the velocity you are trying to assign in null, it's just a silly error Unity has because on the first frame velocities aren't calculated or it's from the delta of the animation. In any case you can get rid of the error if before you apply the velocity do a check with if(float.IsNaN(targetVelocity.x) || the rest of the values in a vector 3 is nan) and if one this is true, simply return