Dude that frame specific function call is a game changer. Thank you. My combat system is good but the animations are busted and i think this might fix it
man where have you been all this time!! i randomly found your video on reddit and it taught me more than all of the other tutorials combined. thank you so much!!
I've watched like 50 Unity videos this week (on a variety of subjects). This is the first I've commented on. I was LOSING MY MIND until I saw this all because my Throw Animation wouldn't complete. Life-saver, thank you
Kinda late to this but this video was so helpful ! My attacks worked well but I didn't know how to associate them with animation, they looked so goofy ! Thanks !!!!
Great tutorial. Do you have a get hit knocked back tutorial for this? When the player takes a hit or even an enemy gravity force is applied and the player or enemy is slightly knocked back in a bounce backwards.
you need to attach the attackPoint to the player, if it's not working, probably your script movement flip method it's fliping the sprite image, and not the object itself. so, technically, you're just fliping an image, therefore, the attackPoint wont flip at all
I have searched high and low but cannot find a tutorial on going to the next scene after eliminating the last enemy. It seems like such a commonly used concept but I cannot find a tutorial on this subject. Please make one when you get a chance. Thanks for all the videos.
Well you can check to see how many enemies are left and then when the number of enemies reaches 0 you can use the scene manager and go to the next scene
good video, but man, you should really not snap away from the lines of code soo fast. You snap back and forth around your script within miliseconds of finishing writing a line, it makes it very tedious to follow this video. i have to change the playback speed to like 10% every time just not to miss anything. like when you write in the public gameobject attack point, you dont even finsh the code before snaping the camera away. hoestly i find this so tedious im going else where for help
I followed this script! and I am having an coding error ! NullReferenceException: Object reference not set to an instance of an object PlayerController.attack () (at Assets/Scripts/PlayerMovement/PlayerController.cs:205) enemyGameObject.GetComponent().ehealth -= damage1; This line of code isn't working and I am having trouble figure out!
You need to move script on your enemy, I have that issue too and cant understand what happened, and just see I create script but not move him on enemy)
The two scripts from this video available here: www.patreon.com/posts/2d-melee-combat-81470892
the web cant work with me
Dude that frame specific function call is a game changer. Thank you. My combat system is good but the animations are busted and i think this might fix it
Glad to hear it 🙌🏻
This guy is super underrated. Hes litterally Brackeys 2.0 but a bit better in the explanations
Thank you! Appreciate that🙌🏻
thank you so much! I was having an ungodly amount of trouble with getting my player attack to work properly!
man where have you been all this time!! i randomly found your video on reddit and it taught me more than all of the other tutorials combined. thank you so much!!
So glad to hear that!💪🏻
I've watched like 50 Unity videos this week (on a variety of subjects). This is the first I've commented on. I was LOSING MY MIND until I saw this all because my Throw Animation wouldn't complete. Life-saver, thank you
i guess i am a patreon soon if these great vids continues :D!
I can promise you that :D
Kinda late to this but this video was so helpful ! My attacks worked well but I didn't know how to associate them with animation, they looked so goofy ! Thanks !!!!
Blakey big brain
Common blockhead W
Thanks for your help. you help me a lot, i hope you keep helping people like me
thank you VERY MUCH!!! your videos saved me in a school project!!
Animation events are game changer!
For 3d also and thank you for this one ❤️❤️
Sounds good!
Great tutorial. Do you have a get hit knocked back tutorial for this? When the player takes a hit or even an enemy gravity force is applied and the player or enemy is slightly knocked back in a bounce backwards.
can you do a tutorial for the enemy attacking the player ?
I keep getting error isDead does not exist.
very good tutorial . it will be good if you make ranged attack too 🔥🔥
Thanks for this video! Could you make a video about procedural animation 2d platformer like rain world?
No prob!
Sure, I'll add it to the list
This is so good, but what about enemy attacking back??
But how do you get the attack point to move when the character is facing the opposite direction ?
you need to attach the attackPoint to the player, if it's not working, probably your script movement flip method it's fliping the sprite image, and not the object itself. so, technically, you're just fliping an image, therefore, the attackPoint wont flip at all
@@herocoffer5600 okey then how to fix?
@@dionysoft transform.rotation = Quaternion.Euler(0f, 180f, 0f);, rotate it
thank you
Very W
I have searched high and low but cannot find a tutorial on going to the next scene after eliminating the last enemy. It seems like such a commonly used concept but I cannot find a tutorial on this subject. Please make one when you get a chance. Thanks for all the videos.
Well you can check to see how many enemies are left and then when the number of enemies reaches 0 you can use the scene manager and go to the next scene
@@gachastorys5129 I followed this successfully
@@gachastorys5129 ua-cam.com/video/ihgH6LRGVks/v-deo.html
@@gachastorys5129 but I'm lost on after this
Will try to curate a tutorial from this
first also can you do a pause menu tutorial
Yep!
@@morebblakeyyy Thanks!!
thanks :D
good video, but man, you should really not snap away from the lines of code soo fast.
You snap back and forth around your script within miliseconds of finishing writing a line, it makes it very tedious to follow this video. i have to change the playback speed to like 10% every time just not to miss anything. like when you write in the public gameobject attack point, you dont even finsh the code before snaping the camera away. hoestly i find this so tedious im going else where for help
I followed this script! and I am having an coding error !
NullReferenceException: Object reference not set to an instance of an object
PlayerController.attack () (at Assets/Scripts/PlayerMovement/PlayerController.cs:205)
enemyGameObject.GetComponent().ehealth -= damage1;
This line of code isn't working and I am having trouble figure out!
You need to move script on your enemy, I have that issue too and cant understand what happened, and just see I create script but not move him on enemy)