2D Melee Combat Unity Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น •

  • @morebblakeyyy
    @morebblakeyyy  ปีที่แล้ว

    The two scripts from this video available here: www.patreon.com/posts/2d-melee-combat-81470892

    • @zoroff5675
      @zoroff5675 ปีที่แล้ว

      the web cant work with me

  • @kiroshi7364
    @kiroshi7364 2 ปีที่แล้ว +9

    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

  • @gachastorys5129
    @gachastorys5129 2 ปีที่แล้ว +8

    This guy is super underrated. Hes litterally Brackeys 2.0 but a bit better in the explanations

    • @morebblakeyyy
      @morebblakeyyy  2 ปีที่แล้ว

      Thank you! Appreciate that🙌🏻

  • @vickit8743
    @vickit8743 4 หลายเดือนก่อน

    thank you so much! I was having an ungodly amount of trouble with getting my player attack to work properly!

  • @XxADONExX
    @XxADONExX ปีที่แล้ว +1

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

    • @morebblakeyyy
      @morebblakeyyy  ปีที่แล้ว +1

      So glad to hear that!💪🏻

  • @Alex-ej1uq
    @Alex-ej1uq ปีที่แล้ว

    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

  • @gerlachwitz123
    @gerlachwitz123 ปีที่แล้ว +1

    i guess i am a patreon soon if these great vids continues :D!

  • @Ellanapepeyoka
    @Ellanapepeyoka 8 หลายเดือนก่อน

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

  • @Blockhead-xc3dq
    @Blockhead-xc3dq 2 ปีที่แล้ว +4

    Blakey big brain

  • @HaiNguyen-ov8sr
    @HaiNguyen-ov8sr หลายเดือนก่อน

    Thanks for your help. you help me a lot, i hope you keep helping people like me

  • @antoniofilipethomazmacedo9002
    @antoniofilipethomazmacedo9002 ปีที่แล้ว

    thank you VERY MUCH!!! your videos saved me in a school project!!

  • @adityagajawat
    @adityagajawat ปีที่แล้ว

    Animation events are game changer!

  • @picsart5661
    @picsart5661 2 ปีที่แล้ว +1

    For 3d also and thank you for this one ❤️❤️

  • @xDTHECHEMISTx
    @xDTHECHEMISTx ปีที่แล้ว

    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.

  • @rockstargaming7605
    @rockstargaming7605 ปีที่แล้ว

    can you do a tutorial for the enemy attacking the player ?

  • @carci8933
    @carci8933 ปีที่แล้ว +1

    I keep getting error isDead does not exist.

  • @parsa26
    @parsa26 2 ปีที่แล้ว +1

    very good tutorial . it will be good if you make ranged attack too 🔥🔥

  • @seymurshiriyev3239
    @seymurshiriyev3239 2 ปีที่แล้ว +1

    Thanks for this video! Could you make a video about procedural animation 2d platformer like rain world?

    • @morebblakeyyy
      @morebblakeyyy  2 ปีที่แล้ว

      No prob!
      Sure, I'll add it to the list

  • @snigames
    @snigames 2 ปีที่แล้ว

    This is so good, but what about enemy attacking back??

  • @LSPTaris
    @LSPTaris ปีที่แล้ว

    But how do you get the attack point to move when the character is facing the opposite direction ?

    • @herocoffer5600
      @herocoffer5600 ปีที่แล้ว

      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

    • @dionysoft
      @dionysoft ปีที่แล้ว

      @@herocoffer5600 okey then how to fix?

    • @芜湖起飞-o4i
      @芜湖起飞-o4i ปีที่แล้ว

      @@dionysoft transform.rotation = Quaternion.Euler(0f, 180f, 0f);, rotate it

  • @BronxPlayZ800
    @BronxPlayZ800 ปีที่แล้ว

    thank you

  • @Blockhead-xc3dq
    @Blockhead-xc3dq 2 ปีที่แล้ว +1

    Very W

  • @torontogamestudio2991
    @torontogamestudio2991 2 ปีที่แล้ว

    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.

    • @gachastorys5129
      @gachastorys5129 2 ปีที่แล้ว

      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

    • @torontogamestudio2991
      @torontogamestudio2991 2 ปีที่แล้ว

      @@gachastorys5129 I followed this successfully

    • @torontogamestudio2991
      @torontogamestudio2991 2 ปีที่แล้ว

      @@gachastorys5129 th-cam.com/video/ihgH6LRGVks/w-d-xo.html

    • @torontogamestudio2991
      @torontogamestudio2991 2 ปีที่แล้ว

      @@gachastorys5129 but I'm lost on after this

    • @morebblakeyyy
      @morebblakeyyy  2 ปีที่แล้ว

      Will try to curate a tutorial from this

  • @69420bet
    @69420bet 2 ปีที่แล้ว +1

    first also can you do a pause menu tutorial

  • @Syneation
    @Syneation 4 หลายเดือนก่อน

    thanks :D

  • @VahdaMage
    @VahdaMage 11 หลายเดือนก่อน

    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

  • @hectorarts
    @hectorarts 9 หลายเดือนก่อน

    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!

    • @nevskyprospect4425
      @nevskyprospect4425 8 หลายเดือนก่อน +1

      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)