COMBATE CORPO A CORPO em Unity

Aprenda a fazer combate corpo a corpo no Unity! Confira NordVPN e ganhe 81% de desconto: https://nordvpn.com/brackeys Código do cupom: BRACKEYS ● Ouça DuckTapes! https://www.ducktapes.fm/ ● Bandits – Pixel art: https://assetstore.unity.com/packages/2d/characters/bandits-pixel-art-104130?aid=1101lPGj ● Movimento 2D: https:/ /youtu.be/dwcT-Dch0bA ● Animação 2D: https://youtu.be/hkaysu1Z-N8 ● Novo sistema de entrada: https://youtu.be/Pzd8NhcRzVo ············· ················································· ···················· ♥ Inscreva-se: http://bit.ly/1kMekJV 👕 Confira a Linha de Código! https://lineofcode.io/ ● Junte-se ao nosso Discord: https://discordapp.com/invite/brackeys ● Site: http://brackeys.com/ ● Twitter: https://twitter.com/BrackeysTweet/ ● Instagram : https://instagram.com/brackeysteam/ ····································· ··············································► é 100% gratuito. Acreditamos que a educação deve estar disponível para todos. Qualquer apoio é realmente apreciado para que possamos continuar a fazer o conteúdo gratuitamente. ················································· ·································· ♪ “ES_Dress Code_Black – oomiee” por Epidemic Sound
source
ah yes, if only the attack point changed positions based on which direction the character is facing… off to find a new tutorial…
any chance of getting a combo system tutorial? Doesn't need to be complex, but I'd love to see how you tackle things like stringing together attack combos, but allowing for a chance to drop the combo if the keys are pressed too fast or something
whenever I play the attack animation he always faces right. how do i make him switch which way he attacks?
What if I need to attack in the other direction? attackPoint doesn't flip with my character model and if I want to attack something left of him, the attack hitbox is behind character's back
From my expirience there are many other ways to create a melee combat in your game. Personally I just create animation, which activates and deactivates trigger around the sword/spear e.t.c. at the right moment.
Great vid – does anyone know how to stop attacking from just running into enemies? Basically with the above, I'm finding that I can kill enemies by running into them instead of when I swing the sword.
a tip on how to better the code is that, If you know how to use the IEnumerator method to make a pause before allowing the player to use the attack again.
hope its not too confusing
Sad to see a legend gone🫡
Guys, love this video like the others, but there must be a better way. If you do that in a 3rd person game, with an attack like a dragons tail whip, the player may easily jump over the tail but still get damage because the player is inside the sphere. I love to see a video with a solution for 3rd person game, which gives detailed hit information (so you can actually play an on-hit FX) and which works equally well between players and monsters but also between monsters and monsters and monsters and objects.
does anyone have the same problem?
when my enemy dies he just falls through the ground/floor, if anyone can help me please do!
extremely great video! Although I do have an issue.
I also have a combat system for the enemies where they attack whenever their collider comes in contact w/ my collider. Whenever the collider's touch, I wont be able to deal damage to them for some reason. Any fix?
Amazing video so helpful thank you so much!
Where did that AttackPoint little sprite underneath Player come from? Is it an Empty GameObject?
Awesome Video. Thanks for this tutorial
How is his character not falling through the ground with collider disabled?
When my character collides with the enemy without attacking it triggers the attack anyway. Why?
the enemy takes no damage please help
Is there a way to make the attack point square instead of circle? If anyone knows please tell!
how do i make rigidbody2D static in the Enemy script so that he does fall into the void
to get it to work i had to make the current health a public int so that i could change it so that it would work
i was stuck on this for 30 minutes just because i didn't see the ( ) right next to the Take Damage and that caused me fucking rethink everything
hi i just wanted to know would it be good to add the attack transition for everything including jump and falling
Hey, when i hit the enemy it reads the attack multiple times, so even with damage of one , enemy can die in few hits with health pool of 100, how can i fix this ?
why the attack point is only right side of the character what if there is enemy behind how to do it?
anybody know how i would get the character to stop moving when attacking?
when am writing voiddrawgizmosselected it gives me an error what should i do?
I´m making a TopDown 2D, is there a way to make the AttackPoint move to all four directions? (right, up, left, down)
This is what i am looking for. Great tutorial. Keep it up!
I don't understand how the character without the collider does not fall on deaf ears
Awesome video. Learned a lot! Tks a million
i have a problem when i implemented the combat system to my game and added everything and stuff when i hit the enemy and the enemy died i got an error saying destroying assets in not permitted due to data loss and i got scared of losing my enemy code and all i worked for to make that enemy prefab.
Greaaat! working on that 😉
how do you flip the character's sprite?
Hi ! it's great… but assts is defferent and it's not work.. please can get us a "little" download with the original pack like you?… thx a lot Sir !!
Commenting a thanks here is not enough…..great work so far for beginners like me
i wonder how can i make jump attack for my player i tried ro put condition but it triggers the attack
Question: will this method work for a top down 2D dungeon (like a bullet hell where you can use mele) or will something else work better?
Why would i use this, vs a raycast or trigger?
And why didnt he cover an enemy attacking YOU the player