i dont search for unity tutorials on youtube anymore, i just go directlly to Dani's channel and search among his videos an i get exactlly what i was looking for.
@abdou22472 жыл бұрын
This is good! Explaining stuff along the way, in a very simple and understandable way. Especially the code, most of time you see code lines in a tutorial and you have no idea what they do or how they come up with that so you end up just following not understanding a thing. Looking forward for future videos!
@JordonRenn93 Жыл бұрын
I think using enums would be better than strings but I've been trying to figure out a way to make animations without animations and this was good info, thank you!
@AkashDhar Жыл бұрын
without animator
@AkashDhar Жыл бұрын
ye enums would be clean but the problem i see in new game devs is that they aren't learning proper development and just doing scripting, but thats not the case when u go in for big games u need good programming skills too
@t33h33studio4 ай бұрын
IntHashing them is probably the better way to do things
@omelette2718 Жыл бұрын
Oh my freaking god you are a life savior, totally agree with you, I hate to deal with the Unity interface and prefer to handle everything by code. The idea works also in 3D which is amazing to say the least. I also find it crazy that the two functions you wrote are not simplified by Unity with some new Properties from the mecanim... Anyway, keep up the good work
@amikawi5 ай бұрын
Really helpful. Thanks!
@usman190212 жыл бұрын
Really enjoy learning from you by far the best teacher in terms of online learning. I have learned JS and HTML CSS from your videos really helpful. Just a request could you also teach us how to upload code to place like github via programm liike VS code.
@DataJuggler Жыл бұрын
3:30 I have never opened Unity, although I do have 20 years of C# experience, but I don't have a character ready. I guess I have to figure out how to create a character and come back.
@mikaeltorres2 жыл бұрын
Amazing! thanks for this one again!
@redmundperrz7234 Жыл бұрын
We need like this kind of video
@Gigabruh_179 ай бұрын
Thanks for the video! Which approach would be effective in your opinion if smooth shifting of transitions is needed? For example, the transition from walking to running in 3d. It looks like the ChangeAnimationState method should be changed to blend animations when changing, right? Is it possible?
@H1D3_152 жыл бұрын
man you are the new brackeys
@Dani_Krossing2 жыл бұрын
Hehe thanks, that's a big compliment. Hopefully one day I'll measure up to his channel. 🙂
@H1D3_152 жыл бұрын
@@Dani_Krossing thanks for the reply!! ~~ you should do something like the palyer fight and cast powers or healing stuff thatll be so cool and the animation of course and thanks for everything
@H1D3_152 жыл бұрын
@@Dani_Krossing you will!!
@melongladiator42562 жыл бұрын
can you make a tutorial on move objects to positions with coordinates with separate object button?
@ItsAkile Жыл бұрын
Thanks, just have to figure out why it loops the run ani at Idle but the other animation work. exactly what I was looking for last year, tried instanting but weird results I recall and flipbook with the particle system trying to get VFX. I had the right idea kinda though.
@micahburnside22816 ай бұрын
This is the way to do things
@dertobbe1176 Жыл бұрын
Hey dude. I have a very basic question. I made a simple rotation anim. I disabled loop and now I want to call it from Script. So I say animator.play("animationname"). But it will only play once of the object itself is instantiated. I made a little float loop of 2 sec and put a debug log in. The debug log activates but the Animation wont. How i need to Set up for this to work?. It's just a simple Shooting Animation. Every 2 seconds it shall animate but how i told it only triggers when the object is instantiated...
@HombreRus2 жыл бұрын
thanks!
@Christo09082 жыл бұрын
I am having trouble with using this method for an attack animation, perhaps someone may be able to help with this, probably being something I've missed entirely. Problem: My attack animation doesn't play due to my Idle, Run, Jump and Fall animations taking over as the parameters are always met and override the attack. How do I set the script to ensure the full attack animation will play before reverting back to whatever animation should be playing without attack? I can add a follow up comment with my code if necessary, to further clarify.
@Dani_Krossing2 жыл бұрын
Whenever you need a particular animation to play, which is triggered by an action instead, you use the isAnimationPlaying() method I showed. Since that method will return a boolean that tells you if your Attack animation has finished playing, before shifting back into the Idle, Run, Jump, or fall animation. 🙂 You can either check the isAnimationPlaying() directly inside your Update(), or create a new method similar to it as well as a new field called something like _isPlayerAttacking, that you change to true or false, before and after the animation is playing.
@jingjoman32 жыл бұрын
May I ask a question? Is it possible to create animation clip and add 2d Sprites into it by script in Unity? My game will have tons of 2D sprites and I think it would be better if I can write code that can manage that for me.
@MatthewLlanito9 ай бұрын
I followed your tutorial and I have a question for some reason I get two errors with IsName and normalizedTime can someone clarify why I get the two errors and how I can fix it
@zahh Жыл бұрын
I have a question, what makes you initialize _animator in Start() and _rb is initialized in Awake()?
@Dani_Krossing Жыл бұрын
_rb should probably have been in Start() 🙂 so just ignore that hehe.
@justforyou8790 Жыл бұрын
i like this way of playing animation but i need to play multiple animation at the same time with layers or blend trees for my 3d game. does anyone have a good video for that? ( still want to controll animation through script tho )
@lserranoit2 жыл бұрын
Hi Sir. Are you planning in the future make similar videos with Unreal Engine ? ❤️
@Dani_Krossing2 жыл бұрын
Atm I am just working in Unity. I would need to actually learn Unreal and C++ first, before I could start teaching it. 🙂
@bloodartist52354 ай бұрын
unity animator is a mess, really nice there! Edit: well look really nice how you do it, just try in my game and not working haha, don't know what i'm doing wrong there Redit: bad me little misstake put != on if for look if animation is allready running or not
@LaGamerLia6662 жыл бұрын
aren't you the guy from the crew in Brackeys?
@Dani_Krossing2 жыл бұрын
No, I am not affiliated with Brackeys in any way. 🙂 It might be our similar accents that makes you think that, since we are from the same country.
@heinehanssen7240 Жыл бұрын
where is the getcurrentstateinfo in the code im getting errors?
@bcd33212 жыл бұрын
Very good tutorial. You have though too many animations going on. Gets hard to follow, especially when you move the screen up and down in the middle of an explanation.
@Stoney_Eagle2 жыл бұрын
It's crazy, I got 80 creator likes from you. Let's keep on counting hehe 😂😊
@Dani_Krossing2 жыл бұрын
Whops... I sneezed and accidentally gave you another one 🤧