Пікірлер
@philipwilliams9833
@philipwilliams9833 18 күн бұрын
NO, DON'T, THIS ANIMATOR IS DONE HORRIBLY!!!! NO BLEND STATES SO IT WILL BECOME AN ABSOLUTE HEADACHE QUICKLY, SAVE YOURSELVES AND LEARN THE BLEND STATES FIRST!!!!
@kenneth5095
@kenneth5095 Ай бұрын
How do I fix the error cant add (any of the 3 scripts) because scripts class cannot be found
@kenneth5095
@kenneth5095 Ай бұрын
You're a g
@littlenuni
@littlenuni Ай бұрын
pleasseeee help I lost my animations! like I scrolled out and looked around and all of them are gone it just looks like there is nothing in the animator please helppp is there some kind of key to click to bring u back to them?
@Hutsull
@Hutsull 4 ай бұрын
Thank you for this incredible solution, because everywhere I looked for the implementation of this mechanic was just a method in Update() and called every frame, and your solution only calls the Flip() method once.
@lubby9438
@lubby9438 5 ай бұрын
Thank you for the tutorial! I just have a question, when I hold left, the sprite faces left as expected, but once I let go of left my sprite faces right again. Any idea why this happens?
@jakub9913
@jakub9913 5 ай бұрын
Thanks for nice tutorial :)
@rec.official
@rec.official 5 ай бұрын
That was an excellent tutorial 👍
@sl4ve576
@sl4ve576 7 ай бұрын
Hello! I have a problem, my code gives me an error saying that float duration is not set and Coroutine refuses to start because of that. Can anyone help? I also didnt include code responsible for animations, but I don't think it is the problem
@menesekinci
@menesekinci 8 ай бұрын
yeah but this technic don't work for 3D. If use this technique for 3D animations, you'll don't have smooth transitions between animations. But you make a 2D game, don't worry, go on.
@longnon248
@longnon248 8 ай бұрын
can i have full of the code
@kakbeitube
@kakbeitube 8 ай бұрын
That's way too complicated, all you need to do is this: `spriteRenderer.flipX = movement.x < 0;`
@michelcastilho6862
@michelcastilho6862 9 ай бұрын
Why do you check for the maxspeed instead of using something like Mathf.Clamp?
@LokeshThakur
@LokeshThakur 10 ай бұрын
Hey Brent, thanks for this, was wondering if this is also shown in your udemy course?
@IAmErr00r
@IAmErr00r 9 ай бұрын
I added basically this KZbin tutorial to it. If you want, message me at [email protected] and I’ll send you a free coupon to the course; I’ve released it several years ago and I don’t mind giving it away at this point for exposure, but Udemy forces me to charge
@LokeshThakur
@LokeshThakur 9 ай бұрын
@@IAmErr00r oh no thats ok, ive actually enrolled in your course a while ago and was recently taking a look at it, while many tutorials cover the whole 2D character state machine with several common player movements, none cover wall hanging so was searching for that and found it here and when you said you have a udemy course, i was like "hey im enrolled in that one"......small world, thanks again!
@jeffreydotson4842
@jeffreydotson4842 10 ай бұрын
Thank you!!! I looked at several "solutions" to the problem of rotating sprites and all of them ended up just spinning the sprite around like a card, but this worked great!
@pranaxr
@pranaxr 10 ай бұрын
this was fun!
@ximingze6278
@ximingze6278 Жыл бұрын
Very helpful! Thanks for sharing!
@sandeez886
@sandeez886 Жыл бұрын
i get this error: MeleeAttackManager.cs(37,29): error CS0115: 'MeleeAttackManager.Initializtion()': no suitable method found to override
@sandeez886
@sandeez886 Жыл бұрын
nvm
@Smash_ter
@Smash_ter Жыл бұрын
using the anystate can make things look simple but it's a bit risky and you shouldn't rely on that component too much, as the anystate does a check on all the animations in one transition. This could take a bit of a toll on performance but it depends on how complex you make your animator
@Th1s230
@Th1s230 Жыл бұрын
Hey man, I have one question regarding a small bug I am facing randomly, some times the player sticks to the wall, and some times it doesn't, I don't know if it's the rb of the player which I haven't touched its values, I have a flat basic scene with no animations even (yet), what could be the problem? Let me now please this is a great ledge grab script. Thanks for these awesome tools and resources/scripts.
Жыл бұрын
Best tutorial ever love you man <3
@MrEastgalaxy
@MrEastgalaxy Жыл бұрын
New Golden standard, going buy course for sure
@aryanshrivastava4733
@aryanshrivastava4733 Жыл бұрын
CS0023 Operator '!' cannot be applied to operand of type 'method group' CS0019 Operator '&&' cannot be applied to operands of type 'bool' and 'method group' how to fix these 2 ?
@codemtv4314
@codemtv4314 7 ай бұрын
you just need to but a () in fronz the method group so for example isGrounded() instead of isGrounded
@IvanHerenchakJones
@IvanHerenchakJones Жыл бұрын
This was super hard to apply to my use case.
@rkgamesstudio6977
@rkgamesstudio6977 Жыл бұрын
Thanks a lot 🙏
@okandikkulak8057
@okandikkulak8057 Жыл бұрын
17:30
@asifmushtaq287
@asifmushtaq287 Жыл бұрын
bakwaaas
@extinguish7284
@extinguish7284 Жыл бұрын
Whenever I’m moving up or down and o tap the right or left button I keep moving down but the animation for moving left or right keeps playing. How do I fix this
@DARK_AMBIGUOUS
@DARK_AMBIGUOUS Жыл бұрын
I need help. When I click on one of the squares inside of the animator and try to set an animation clip in the inspector on the right. I click on one of the animation clips that I made and then it just immediately sets it to None. I couldn’t get it to work so instead I tried to use the “Animation” Component and it worked but it only lets me use one animation. There is a category that says “Animations” and it says Element 0, Element 1, and Element 2 and there is a + and a - and you can add more animations to it but I don’t know how to make the Element 1 or Element 2 animations play. I’m using visual scripting instead of C# and I’m trying to use the unit called “Animation Play” (or I believe in C# it’s called Animation.Play) and there is a drop down with all of your animations. It shows 2 categories, Scene, and Assets. Scene shows every object in my scene that has an Animation Component on it. And Assets shows every “Animation Clip” in my game but whenever I click on the animation clip that I want to use. It just sets it to none. The same thing happens every time I try to use an animation clip
@danmolo
@danmolo Жыл бұрын
When i switch to Unity from Flash, a year ago. The first thing that i made, was a system to controller the animations. Now i just call gotoAndPlay(Animation ID); and its all. Its some like your solution.
@adebanjiikumapayi2343
@adebanjiikumapayi2343 Жыл бұрын
Will it work for 3d??
@patelvraj1362
@patelvraj1362 Жыл бұрын
i can not understand what are telling at time 8:10 for line 72 i understand first argument of IF statement but after that in second condition why are you checking middle of ledge collider ,i mean to say what if the ledge hight is very big like double the size of player and player jumped on it through a different platform ,didt it make your condition wrong because if player just touch the ledge object then according to you it fulfils the requirements to climb but in reality it is not possible because of the hight of ledge.
@IAmErr00r
@IAmErr00r Жыл бұрын
Hi Patel, I address this within this video and I recommend you make a prefab that consists of 2 gameobject: one being the bulk of a ledge you’re describing, and the second gameobject acting as the grabbable ledge at the top.
@RatSentinel
@RatSentinel Жыл бұрын
Thanks, this really helped
@adrianfelix4518
@adrianfelix4518 Жыл бұрын
I was able to fix most of my problems but now the only thing is that my enemies don't take damage, I get this error whenever I try to attack them (NullReferenceException: Object reference not set to an instance of an object, MeleeWeapon.HandleCollision (EnemyHealth objHealth) (MeleeWeapon.cs:67)) if you could tell me what this error means and how to fix it, I'd greatly appreciate it.
@IAmErr00r
@IAmErr00r Жыл бұрын
It sounds like the enemy might not have an EnemyHealth script on the enemy that could run the damage method; if you have your own health script on your enemy, you will need to change the reference to the EnemyHealth script within the MeleeWeapon script to whatever you named the health script on your enemies. Let me know if this makes sense or helps you out.
@adrianfelix4518
@adrianfelix4518 Жыл бұрын
@@IAmErr00r I completely copied every piece of code and changed anything that needed to be changed, and my enemies have the EnemyHealth script attached. Could it be some other issue that I just don't know about?
@IAmErr00r
@IAmErr00r Жыл бұрын
A null reference error usually means you are trying to access a variable or method in a script on a gameobject and that script isn’t found on the gameobject you are trying to interact with. Your error is saying that the MeleeWeapon script is running the HandleCollision method; that method sets the direction of the hit, then runs the Damage method on the EnemyHealth script, then last runs a quick coroutine to make sure the melee attack only registers one hit per strike. Unless I’m not seeing something in my code, your enemy doesn’t have the EnemyHealth script I provide in this video or you renamed my script and aren’t referencing it correctly; maybe you have another script named EnemyHealth and renamed the script I provide, if that is the case then you need to reference the renamed script in the parenthesis at the top of the method.
@Dukykitsune
@Dukykitsune Жыл бұрын
@@IAmErr00r I have the same problem I have tried everything but nothing works. When I hit an enemy with the script the game crashes with the error NullReferenceException: Object reference not set to an instance of an object MeleeWeapon.HandleCollision (EnemyHealth objHealth) (at Assets/Scripts/MeleeWeapon.cs:69) MeleeWeapon.OnTriggerEnter2D (UnityEngine.Collider2D collision) (at Assets/Scripts/MeleeWeapon.cs:45)
@blackheartgaming6121
@blackheartgaming6121 Жыл бұрын
Love how you set up the video
@blackheartgaming6121
@blackheartgaming6121 Жыл бұрын
Can’t wait to get my gaming desktop soon so I can start making games again unity and unreal I’m going to use both again
@IAmErr00r
@IAmErr00r Жыл бұрын
I’ll reply to both of your comments here, but thanks so much for your feedback. I’m hoping to get back into these soon!
@hfg16
@hfg16 Жыл бұрын
Bro this is a fk tu Tutorial explaining the logic of everything even the code how he check with other cods and how everything is operating bro please continue u are a beast ❤️❤️❤️❤️🎬
@IAmErr00r
@IAmErr00r Жыл бұрын
Really appreciate this! It’s been a while since I checked my channel and comments like this really make me want to pick this up again soon!
@ramsesgonzalez8853
@ramsesgonzalez8853 Жыл бұрын
I recently got into unity and MetroidVania games (specifically HollowKnight) is what inspired me so I want to attempt to do a game like this and this I see that this channel is going to be of hreat help! Well appreciated!
@IAmErr00r
@IAmErr00r Жыл бұрын
Thanks! I’m hoping to get back into tutorials soon, had to take a full time job starting this year and took a break
@suryaprakash9083
@suryaprakash9083 Жыл бұрын
Thank you so much for good tutorial
@IAmErr00r
@IAmErr00r Жыл бұрын
Thanks! Really means a lot!
@kikacNNGK
@kikacNNGK Жыл бұрын
Great video!! As a starter it helped me an enormous amount. The thing is im trying to implement this to a hook, where the handling i assume should be modified.
@IAmErr00r
@IAmErr00r Жыл бұрын
Yeah, there is a lot you need in order to do a good hook system for game dev. I go over how to have a grappling hook in the course I have on Udemy, but that feature really requires a good amount of foundational code for a KZbin tutorial
@SnurtleLive
@SnurtleLive Жыл бұрын
6669 views and 69 likes, never thought I'd be lucky enough to see this. Also great tutorial btw..
@IAmErr00r
@IAmErr00r Жыл бұрын
Those are rookie numbers, gotta pump those numbers up! Thanks!
@0whatman
@0whatman Жыл бұрын
I've been trying to adapt this to a 2.5D game, but for some reason it seems to not connect with the enemies I change all the code for the 3D and it shows no errors or the like, so idk what the problem is
@IAmErr00r
@IAmErr00r Жыл бұрын
You need to make sure all the colliders used in Unity are 3D as well as using the 3D references to these in your code (it sounds like you did that second part already though) Let me know if you’re still having trouble
@0whatman
@0whatman Жыл бұрын
@@IAmErr00r I did do all of that I've been trying to do with (a crap I cant remember the name rn, it's super late and I'm boutta sleep lol) the thing that like goes arround the body to make the hitbox instead of using pills and cubes and such but I also tried it with those and it didnt work, I know they require some differences in code and I made those changes
@Solbast
@Solbast Жыл бұрын
can you do a video about enemy and player health?
@IAmErr00r
@IAmErr00r Жыл бұрын
Hey! I actually did one already I think, check my channel and there is a video about damage and knockback
@foxi7463
@foxi7463 2 жыл бұрын
Somehow my rigidbody stopped working and i'm stuck in the air.
@IAmErr00r
@IAmErr00r Жыл бұрын
Hey, sorry about the delay, but want to provide some help if you’re still needing it
@animedamv8210
@animedamv8210 2 жыл бұрын
your animation sucks 😂😂
@esbol
@esbol 2 жыл бұрын
ThankYou!!! Great!!!
@IAmErr00r
@IAmErr00r Жыл бұрын
Hey! Thanks so much! Glad you learned from it!
@RothaarYT
@RothaarYT 2 жыл бұрын
First of all, really thankfull for the video. It really helped understanding the whole concept of holding onto objects. I only got one issue, I am not able to jump - i really dont know how to fix this problem. I checked the input manager, I checked the script, but the yVelocity wont seem to change if I press "Spacebar" or "W". I followed all your tutorials twice but cant find a solution. Any ideas on what "could" be the issue?
@IAmErr00r
@IAmErr00r Жыл бұрын
Hey there, I’m sorry for the late reply, became too busy to manage this. If you’re still needing help I can try and narrow it down, but with the info provided it might be related to the initial jump force, or you might be using the wrong rigidbody (3D rigidbody for 2D or 2D for 3D)
@nightyonetwothree
@nightyonetwothree 2 жыл бұрын
too many comments in code makes it really hard to read -_-
@seemabansal7298
@seemabansal7298 2 жыл бұрын
This channel definitely deserves more subscribers
@IAmErr00r
@IAmErr00r Жыл бұрын
Hey! I appreciate this! I’m hoping to find the time to do more tutorials soon, I’ve been so busy this whole year
@chucrez
@chucrez 2 жыл бұрын
i was having trouble to make good walking animations and u save me. Thanks a lot
@IAmErr00r
@IAmErr00r 2 жыл бұрын
Thanks! The Animator has tons of tools that I never use or understand, so I’m glad I could make this easy for you.