Hey, wanted to make this pinned to first say thanks for all the support on the video! I'm planning on making more content like this and content in general very soon. I would also like to clarify an issue I've seen with builds. I didn't run a test build verifying the system (rookie mistake I know) so you might see these. - The OnValidate function doesn't get called inside of builds, so you should move the logic that sets your mainStateType dynamically into the top of the Awake function. I suggest putting it in its own function for ease of use in both editor and build cases. And thank you to all those who have pointed it out.
@utyflby
2 жыл бұрын
TNice tutorials is by far the best soft soft basic tutorial, I rember when I just started learning, tNice tutorials was so helpful!! I’ve now been releasing edm
@floatixx
2 жыл бұрын
damn how you make videos this good with only about 300 subs that's crazy
@HippieMoney
Жыл бұрын
Gonna ramp up in subs real quick, keep it up! Great tut!
@madhavsolanki6464
2 жыл бұрын
studying more of your videos to begin to get comfortable. Thank you!
@jaztiryzer06
2 жыл бұрын
man it is the best thing I have ever seen
@berkedagal6035
2 жыл бұрын
Very well done video, gets to the point fast. Cheers!
@jummisammi
2 жыл бұрын
Thanks, man! Just what I was looking for!
@alanzack---amv8558
2 жыл бұрын
OMG, it really worked. Thank you so much!!
@mrnick8361
2 жыл бұрын
LOOOL YESSSSSSSS TNice tutorialS COMNT IS FELTTTTT
@blades575
2 жыл бұрын
Great stuff. Thanks for sharing!
@USA-RPA
2 жыл бұрын
Great video, VERY easy to listen to you and follow along. Please keep videos coming... subbed for sure!
@SSRBast
Жыл бұрын
Great video try tutorial!! Keep up the Good Work!
@textilesgranfe8940
2 жыл бұрын
thank you straight to the point
@miloobote8949
8 ай бұрын
In the ComboCharacter file I keep getting errors for meleeStateMachine.CurrentState. It tells me the object reference is not set to an object. If I already instatiated the object meleeStateMachine as a private object how could it not exist? Please help I think Im close because when I comment out the reference to meleeStateMachine I am able to get attack 1 out by clicking.
@diegorg64
Ай бұрын
I have been trying for a while to add a parameter of the animator in an animation to modify its value as you do in minute 15:32, but I can't manage to do it. When I hit Add Property in the animation, the Animator component of the Gamebject is not shown.
@joaogabriellimamoraes4087
9 ай бұрын
how is GetComponent supposed to work inside the MeleeBaseState class if it does not inherit from MonoBehaviour ?
@blasterxt9
Жыл бұрын
Thank you buddy
@faqihwicaksono2015
2 жыл бұрын
Thank you tNice tutorials really helped!!!!!!!!!!!!
@luqigongchang6213
2 жыл бұрын
How did you get the effects chain on the left side of the setuper?
@laikenfui2191
2 жыл бұрын
Thx
@miguelbroca3243
2 жыл бұрын
nice
@rajuhossain7819
2 жыл бұрын
Wow
@parappaaaaa...8864
2 жыл бұрын
Hey man everything works fine now... But the attack animation starts a little slow at first when I click it, it takes a second to respond ... Is there any way to solve this?
@SMHillDev
2 жыл бұрын
My best guess is you forgot to set exit time for the transitions to 0 from Any State to your attack. If you have any exit time on any of those states it waits for the idle animation to finish a complete cycle first before firing off any animations.
@sora1804
Жыл бұрын
@@SMHillDev it gives me using or assembly error while switching the MonoBehaviour to State
@jaimehernandezirua9878
2 жыл бұрын
Vincent beginning*
@modifiedfox64
2 жыл бұрын
make a good soft
@lucianogualda2348
2 жыл бұрын
im watcNice tutorialng tNice tutorials vid wNice tutorialle im in class lmao
@nguyenhoctuananh9083
2 жыл бұрын
to
@marwanonthemoon876
2 жыл бұрын
Hey Dude, I ran into another issue, for some reason I get a NullReferenceException when I try to execute this meleeStateMachine.CurrentState.GetType() the first time, it works fine afterwards in editor, but the issue persists in build, any idea where this might come from?
@SMHillDev
2 жыл бұрын
Sounds like a race condition of sorts? Currentstate could be set to nothing when you're trying to check the type. So try adding an adition check around that if check to see if meleeStateMachine != null && MeleeStateMachine.CurrentState != null.
@marwanonthemoon876
2 жыл бұрын
@@SMHillDev I figured it out, I was testing a development build and OnValidate only runs on editor and not builds, so I set the mainstate in Awake instead and that fixed it
@BlortNet
Жыл бұрын
@@marwanonthemoon876 Funny I have been PULLING MY HAIR OUT at this problem. Thank you for sharing your fix
@2chi2talk
Жыл бұрын
Hey check your dm on IG trying to reach out for a gaming project bro
@LucasDevWeb
Жыл бұрын
Hi Sean, state machine it doesn't work when i do the build, I can't find the solution.
@LucasDevWeb
Жыл бұрын
NullReferenceException: Object reference not set to an instance of an object at ComboCharacterState.Update () [0x0001c] in :0
@peterhe2872
Жыл бұрын
@@LucasDevWeb did u solve the issue?
@jagerbi_9741
7 ай бұрын
@@LucasDevWebit seems like that you haven't assigned something
@NguyenTran-hb5oe
5 ай бұрын
The combat system doesn't work after I built my project. The player character doesn't respond after the attack input. But it works fine in the Unity Editor. Any ideas why?
@iop313
2 ай бұрын
Yea it happend time to time to me also U need more updated videos u can try one of two things 1. typing ur own code (The some thing could happend) 2. finding more updated tutorial when unity tutrial get 2years or much older it don't working usally even visual tell u all good (But tip for me check ur unity project be4 u deleting ur code maybe something there is worng)
@thiagodasilva3022
Жыл бұрын
Good tutorial! Though my GroundEntryState seems to go to the GroundComboState even when i dont hit the button. Any Ideas on why this could happen?EDIT: Nevermind t fixed itself through the Attackwindows...
@Sittidet
2 жыл бұрын
This is great tutorial! i'm looking about 2d melee combo tutorial for a while. but i have a problem. the character is changing from GroundEntryState to GroundComboState immediately(i just click 1 time but character's animation is transit from Attack1 to Attack2 by itself), I tried to look at the scripts, Is there any way to solve it?
@thiagodasilva3022
Жыл бұрын
I have the same Problem
@thiagodasilva3022
Жыл бұрын
Just Continue the Tutorial it Fixes itself with the AttackWindows... :)
@kamelyehya2182
7 күн бұрын
Hey man, great tutorial, I have a small question, my character is going from Idle to Attack1 to Attack2 from one click only I can't know why. I tried adjusting the attack window to the last frame of Attack1 animation, but now it's no longer going to Attack2, most probably because of the small window. What's the issue ? I followed the video step by step even the github repo.
@phantomredstudios
2 жыл бұрын
Beat me to the FSM combo tutorial. I was just talking to my spouse about doing one and this got recommended to me randomly. I'm about two months late to the party. Good stuff. My only critique, I would cut out the animator since you already have a FSM you are working with.
@lyricaldemon2537
6 ай бұрын
Not well explain...all my Code getting errors till I decide to delete all of them and Find a Vedio that best suits me 🙄
@warpzone8421
Жыл бұрын
Found a bug. I compiled this using 2022.3.5, and it works fine in the editor, but when I build the game, clicking the mouse doesn't do anything. Which is strange, since you're just using Input.GetMouseButtonDown and there aren't any special extra input packages being used. When I googled it, I found a Unity forum thread with like 30 different solutions that were all use-case specific. Why is something as basic as clicking the mouse so fragile in Unity though?
@tegnevincent498
Күн бұрын
this rlly fkin awesome. subbed
@durvids474
2 жыл бұрын
Really great stuff! Looking forward to more from you. Subbed!
@SMHillDev
2 жыл бұрын
Awesome, thank you!
@duyvo1258
2 жыл бұрын
Thanks a lot dude! This is heavily underrated tutorial, you taught the fundamental which is easy to understand, I will follow and implement it in my project but with different hitbox managing approach. Anyway, one sub and nice day!
@ivomaayne9183
5 ай бұрын
I NEED to know what Visual Studio theme this is- it looks awesome
@scrillagorilla4524
Жыл бұрын
amazing tutorial bro! this is perfect. I learned a lot, and you explained things really well. i wonder what you're up to now? did you get a job in the tech field?
@Xinnou
7 ай бұрын
fucking legend, this is so well done
@aduvipppp
2 жыл бұрын
you are not like the others who puts link filled with adds, so u deserve to be subscribed..... thanks for the plugin and all the best for future
@fongz1211
2 жыл бұрын
I really appreciate that you help people with free apps
@koelgamer6304
2 жыл бұрын
The reason for my asking, is due to crackling/distorting soft, whenever the drum/snare, or whatever is playing. TNice tutorials was the case off
@lyricaldemon2537
6 ай бұрын
All i get is Errors
@venenopp
2 жыл бұрын
Can�t wait to go out tonight and celebrate your birthday. But first of all, accept my warmest wishes and gratitude for being my brother.
@JuhlaChessu
2 жыл бұрын
Holy shit, thank you so much!!
@ohaidavid1739
2 жыл бұрын
Hey Bro, Don't talk down to yourself like that. believe in yourself and don't let nobody change your mindset of that!
@georgigeorgiev9966
2 жыл бұрын
I don't know what i am doing wrong but my character only repeats the first attack animation without clicking or doing anything?
@almaaanea
Жыл бұрын
Aah this is helping me so much! Thank you! I haven't finished but I can tell this is probably going to work. TYSM! I subbed
@EmanuelRZM
2 жыл бұрын
When I've started producing I personally have downloaded most of the plugins from there, never had problems with virus, malwares and
@juanantoniomarcoscapcha9203
2 жыл бұрын
Please, Please, Please include "New Quantize Jumps" also in "Edison" and "Slicex".
@ItsAkile
2 жыл бұрын
Thanks, Gonna sink my teeth into this for the first time this week. I already have a base idea of what I want to accomplish
Try to see soft design , composing and setuping as three seperate tNice tutorialngs to focus on and it might will make more sense
@herrflantier3739
Жыл бұрын
This will be very helpful for my project. Thanks !
@Momazosgoofy
2 жыл бұрын
u see that little cog option button on the bottom near the fullscreen button? if u click on that u can chose to slow it down or speed it up. i
@peterhe2872
Жыл бұрын
getting nullreference error in build only, any clue how to solve it? seems currentstate and nextstate are missing
@pokefesterJr
Жыл бұрын
same bro HELP LOL
@peterhe2872
Жыл бұрын
@@pokefesterJr the onvalidate func doesn't get called in buid, sorry for late reply dude
@pokefesterJr
Жыл бұрын
@@peterhe2872 np, thanks for the reply. I found out about the on validate after scrolling through the comments some more
@lochuynh3888
2 жыл бұрын
lmao XDDD
@d3certii941
Жыл бұрын
This tutorial was great but im having problems with getting the attack to work and i have no compiler errors
@Fatpoickle
2 жыл бұрын
In the setup, appreciate the videos! Maybe a dumb question but is there a way to export content in mono in soft20?
@quickunity3543
2 жыл бұрын
Great tutorial man, I am starting to make videos myself! Good luck!
@ericrichard9854
2 жыл бұрын
man you should have more subscriber, this is high quality vids good job!
@LilArquebus
Жыл бұрын
Great video, excellent pacing and concise but poignant descriptions.
@Hotpes
2 жыл бұрын
the quality of this video is insane, thank you for this
@LordHinson
2 жыл бұрын
it works perfectly! Thanks buddy
@kumailthecuber7477
2 жыл бұрын
unbelievably well explained...to the point, no wafsofte wafsofte chat...you´re the dude ..thanks!
@supendi42
8 ай бұрын
Is it expensive to call new for every state transition?
@SMHillDev
8 ай бұрын
I haven't run it through a profiler, but I assume it's fine seeing as the class itself is pretty lightweight. Though this system could use some optimization I have tested it with dozens of game objects at a time all running various logic ontop of the statemachines and haven't seen any issues linking to it.
@supendi42
8 ай бұрын
Thanks for the quick reply, I guess there is a lot of difference when instantiating pure C# class and monobehaviour class
@pabloborioni9638
2 жыл бұрын
wow, its working for magic eden, opensea and minting sites
@coffeegarden
Жыл бұрын
How beatiful algoritm.. Amazing
@reaporofdragon744
2 жыл бұрын
thanks i did a similar system from a course but you could only damage one enemy at a time and having 5 enemies rushing you and only hitting 1 seems unfair XD thanks now i can make it more like a survival instead of a platformer
@someday4931
2 жыл бұрын
I'm trying to learn even though I only have fruit
@zullismairethacunaolivella1437
2 жыл бұрын
wow thank you so much. no joke it is now so much easier and u explained it really good.
@AaronAsherRandall
7 ай бұрын
My dude this is soooo good! Instant sub!
@delsinrowe3748
2 жыл бұрын
Object reference not set to an instance of an object GroundEntryState.OnEnter (StateMachine _stateMachine) (at Assets/Scripts/GroundEntryState.cs:14) StateMachine.SetState (State _newState) (at Assets/Scripts/StateMachine.cs:31) StateMachine.Update () (at Assets/Scripts/StateMachine.cs:16)...help?
@SMHillDev
2 жыл бұрын
That error is normally caused by a variable not being set when you're using it. I believe(If you set things up like my example project in git) that specific one is the animator component. Without seeing your code that could be caused by a number of things. 1. You haven't properly parented GroundEntryState to MeleeBaseState (GroundEntryState : MeleeBaseState) which is what holds the Animator in the first place. 2. You forgot to set the animator component in MeleeBaseState (animator = GetComponent();) in that classes' OnBegin() function. 3. You've done both of these but you placed the order of the super function wrong or not at all. In each overridden class make sure you have the base version of each functions call in the leading function. So in this particular case having the base.OnEnter() function at the top of the function. This calls the parents OnEnter function which sets all those variables. Its important that this is called first because we have to set them before using them. public override void OnEnter(StateMachine _stateMachine) { base.OnEnter(_stateMachine); // Do the rest of the stuff you need here. } If none of that works I suggest checking your code against the one I've linked in my description that leads to the project on git for comparison.
@delsinrowe3748
2 жыл бұрын
@@SMHillDev thank you so much bro
@SMHillDev
2 жыл бұрын
No problem!
@EnterName12312
2 жыл бұрын
Ok... I think i did it.. The only error I got was for the HitEffect... Does anyone know how to make a HitEffect or get one without paying xD?
@SMHillDev
2 жыл бұрын
The hit effect from the asset store is just a 2D particle effect. So making any particle and throwing it in should work all the same.
@krytis3024
Жыл бұрын
Just found out my automata class actually isn't useless 🤯
@bobbville
2 жыл бұрын
This video deserves all the love! Great video man! 🔥🔥🔥🔥like and sub from me!
@SMHillDev
2 жыл бұрын
Thanks! Appreciate it alot.
@parappaaaaa...8864
2 жыл бұрын
Hey i dont know why but when I start the game the animation is working but the Character doesn't return to idle when I click it only does the attacks and stop when the animation is done... Not returning to idle... I am pretty new to Unity animation so... Idk what I did wrong?
@khnuxsora
2 жыл бұрын
you probably set conditions from the attack to idle...i think if you remove them it should work
@nbzcik
2 жыл бұрын
Thanks I love you
@frankypappa
2 жыл бұрын
Nice work. Subbed! 👍🏾👌🏾
@jeffreyhendricks3428
2 жыл бұрын
thank you so much for posting these good videos
@karaliseklers2531
2 жыл бұрын
thank you so much for sharing this method with !
@scobro
Жыл бұрын
how would i do this with the new input system?
@MarceloCSC
Жыл бұрын
Amazing tutorial. You should keep posting, man! It's been awhile.
@swiftcreations
2 жыл бұрын
What about implementing the input to use the Unity New Input system, instead of mouse 0?
@SMHillDev
2 жыл бұрын
What about it? That depends on your use of it/how you implemented it. If you're asking what the new unity input system equivalent of Input.GetMouseButton(0) is in the new Unity Input System its Mouse.current.leftButton.wasPressedThisFrame.
@reaporofdragon744
2 жыл бұрын
or just go into the settings and use both input systems
@alexisyvandolosa3831
2 жыл бұрын
"The softs in these softs are gonna be sent to the setuper"
@tekmontekmon8098
2 жыл бұрын
Best soft soft Introduction Ever!!
@boris345678
2 жыл бұрын
Actually legit. Thanks!
@toastymctoast3672
2 жыл бұрын
very very gooood, thaaankss maan
@andersonoliveiramagalhaes1785
7 ай бұрын
What a smart Young man, thanks
@jepoystv7396
2 жыл бұрын
Thank you, it means a lot:)
@dybala7pvp
2 жыл бұрын
i downloaded. its works :)))
@polski6812
2 жыл бұрын
What a great video, helps A LOT in the beginning.
@tobias9790
8 ай бұрын
You have not nearly enough subscribers for how good ur videos are man
Пікірлер: 170