EASIER ANIMATION USING CODE IN UNITY 🎮 | Unity Animation For Beginners | Learn Unity For Free

  Рет қаралды 26,705

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 41
@plasteelgaming
@plasteelgaming 9 ай бұрын
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.
@abdou2247
@abdou2247 2 жыл бұрын
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
@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
@AkashDhar Жыл бұрын
without animator
@AkashDhar
@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
@t33h33studio
@t33h33studio 4 ай бұрын
IntHashing them is probably the better way to do things
@omelette2718
@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
@amikawi
@amikawi 5 ай бұрын
Really helpful. Thanks!
@usman19021
@usman19021 2 жыл бұрын
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
@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.
@mikaeltorres
@mikaeltorres 2 жыл бұрын
Amazing! thanks for this one again!
@redmundperrz7234
@redmundperrz7234 Жыл бұрын
We need like this kind of video
@Gigabruh_17
@Gigabruh_17 9 ай бұрын
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_15
@H1D3_15 2 жыл бұрын
man you are the new brackeys
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
Hehe thanks, that's a big compliment. Hopefully one day I'll measure up to his channel. 🙂
@H1D3_15
@H1D3_15 2 жыл бұрын
@@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_15
@H1D3_15 2 жыл бұрын
@@Dani_Krossing you will!!
@melongladiator4256
@melongladiator4256 2 жыл бұрын
can you make a tutorial on move objects to positions with coordinates with separate object button?
@ItsAkile
@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.
@micahburnside2281
@micahburnside2281 6 ай бұрын
This is the way to do things
@dertobbe1176
@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...
@HombreRus
@HombreRus 2 жыл бұрын
thanks!
@Christo0908
@Christo0908 2 жыл бұрын
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_Krossing
@Dani_Krossing 2 жыл бұрын
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.
@jingjoman3
@jingjoman3 2 жыл бұрын
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.
@MatthewLlanito
@MatthewLlanito 9 ай бұрын
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
@zahh Жыл бұрын
I have a question, what makes you initialize _animator in Start() and _rb is initialized in Awake()?
@Dani_Krossing
@Dani_Krossing Жыл бұрын
_rb should probably have been in Start() 🙂 so just ignore that hehe.
@justforyou8790
@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 )
@lserranoit
@lserranoit 2 жыл бұрын
Hi Sir. Are you planning in the future make similar videos with Unreal Engine ? ❤️
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
Atm I am just working in Unity. I would need to actually learn Unreal and C++ first, before I could start teaching it. 🙂
@bloodartist5235
@bloodartist5235 4 ай бұрын
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
@LaGamerLia666
@LaGamerLia666 2 жыл бұрын
aren't you the guy from the crew in Brackeys?
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
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
@heinehanssen7240 Жыл бұрын
where is the getcurrentstateinfo in the code im getting errors?
@bcd3321
@bcd3321 2 жыл бұрын
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_Eagle
@Stoney_Eagle 2 жыл бұрын
It's crazy, I got 80 creator likes from you. Let's keep on counting hehe 😂😊
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
Whops... I sneezed and accidentally gave you another one 🤧
@Stoney_Eagle
@Stoney_Eagle 2 жыл бұрын
@@Dani_Krossing Bless you 😆
@favour5442
@favour5442 2 жыл бұрын
First to comment, ✌️✌️
Escaping Unity Animator HELL
18:18
Lost Relic Games
Рет қаралды 520 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Intro to Animation Rigging & Procedural Animation in Unity
13:33
iHeartGameDev
Рет қаралды 206 М.
The Best FREE Software for Game Development! (In my Opinion)
11:06
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 138 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 307 М.