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
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)
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 !!!!