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

  • @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

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

  • @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

    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?

  • @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 ua-cam.com/video/ihgH6LRGVks/v-deo.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 9 місяців тому +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)