2D Melee Combat Unity Tutorial

  Рет қаралды 16,692

MoreBBlakeyyy

MoreBBlakeyyy

Күн бұрын

Enjoy the video, if you have any questions ask in the comments down below!
Chapters:
Scene overview: 00:00
Assets used: 01:57
Player attack animation setup: 02:28
Animation events: 04:06
Attack functionality: 05:24
Enemy health script: 10:37
Enemy animations: 12:02
Showcase: 14:58
Outro: 15:08
Assets:
untiedgames.itch.io/free-gras...
craftpix.net/freebies/free-de...
Request a tutorial here:
forms.gle/JLBkpHt1ZFLpn7TE9
Patreon with fully explained c# scripts:
/ blakeygames
Main Channel: / bblakeyyy
Join the Discord: / discord
Play my games! :
blakey-games.itch.io/
play.google.com/store/apps/de...
Watch me Live on twitch: / bblakeyyy
checkpoint, checkpoint system, unity moreblakey, bblakeyyy, unity tutorial, unity 2d, unity checkpoint, unity respawn, unity object, blakey spawn, blakey tutorial Audio used in my videos:
♪ Onion (Prod. by Lukrembo)
Link : • (no copyright music) l...
♪ Branch (Prod. by Lukrembo)
Link : • (no copyright music) c...
♪ Biscuit (Prod. by Lukrembo)
Link : • (no copyright music) l...
♪ Bread (Prod. by Lukrembo)
Link : • (no copyright music) j...

Пікірлер: 61
@morebblakeyyy
@morebblakeyyy Жыл бұрын
The two scripts from this video available here: www.patreon.com/posts/2d-melee-combat-81470892
@zoroff5675
@zoroff5675 8 ай бұрын
the web cant work with me
@antoniofilipethomazmacedo9002
@antoniofilipethomazmacedo9002 8 ай бұрын
thank you VERY MUCH!!! your videos saved me in a school project!!
@XxADONExX
@XxADONExX Жыл бұрын
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 Жыл бұрын
So glad to hear that!💪🏻
@Ellanapepeyoka
@Ellanapepeyoka 4 күн бұрын
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 !!!!
@gachastorys5129
@gachastorys5129 Жыл бұрын
This guy is super underrated. Hes litterally Brackeys 2.0 but a bit better in the explanations
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Thank you! Appreciate that🙌🏻
@kiroshi7364
@kiroshi7364 Жыл бұрын
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
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Glad to hear it 🙌🏻
@adityagajawat
@adityagajawat Жыл бұрын
Animation events are game changer!
@gerlachwitz123
@gerlachwitz123 Жыл бұрын
i guess i am a patreon soon if these great vids continues :D!
@morebblakeyyy
@morebblakeyyy Жыл бұрын
I can promise you that :D
@xDTHECHEMISTx
@xDTHECHEMISTx 8 ай бұрын
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.
@parsa26
@parsa26 Жыл бұрын
very good tutorial . it will be good if you make ranged attack too 🔥🔥
@Blockhead-xc3dq
@Blockhead-xc3dq Жыл бұрын
Blakey big brain
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Common blockhead W
@picsart5661
@picsart5661 Жыл бұрын
For 3d also and thank you for this one ❤️❤️
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Sounds good!
@BronxPlayZ800
@BronxPlayZ800 5 ай бұрын
thank you
@Alex-ej1uq
@Alex-ej1uq 4 ай бұрын
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
@snigames
@snigames Жыл бұрын
This is so good, but what about enemy attacking back??
@rockstargaming7605
@rockstargaming7605 11 ай бұрын
can you do a tutorial for the enemy attacking the player ?
@Blockhead-xc3dq
@Blockhead-xc3dq Жыл бұрын
Very W
@seymurshiriyev3239
@seymurshiriyev3239 Жыл бұрын
Thanks for this video! Could you make a video about procedural animation 2d platformer like rain world?
@morebblakeyyy
@morebblakeyyy Жыл бұрын
No prob! Sure, I'll add it to the list
@carci8933
@carci8933 Жыл бұрын
I keep getting error isDead does not exist.
@69420bet
@69420bet Жыл бұрын
first also can you do a pause menu tutorial
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Yep!
@69420bet
@69420bet Жыл бұрын
@@morebblakeyyy Thanks!!
@LoreCollege
@LoreCollege Жыл бұрын
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?
@user-tv9bi2we8w
@user-tv9bi2we8w Жыл бұрын
@@dionysoft transform.rotation = Quaternion.Euler(0f, 180f, 0f);, rotate it
@torontogamestudio2991
@torontogamestudio2991 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@gachastorys5129 I followed this successfully
@torontogamestudio2991
@torontogamestudio2991 Жыл бұрын
@@gachastorys5129 kzbin.info/www/bejne/n5nKeWmCh6yJodU
@torontogamestudio2991
@torontogamestudio2991 Жыл бұрын
@@gachastorys5129 but I'm lost on after this
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Will try to curate a tutorial from this
@StoryQuest920
@StoryQuest920 3 ай бұрын
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 Ай бұрын
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 Ай бұрын
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)
Game Over Screen Unity Tutorial
14:35
MoreBBlakeyyy
Рет қаралды 36 М.
MELEE COMBAT in Unity
21:07
Brackeys
Рет қаралды 1,6 МЛН
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Рет қаралды 6 МЛН
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 6 МЛН
Creating SMART enemies from scratch! | Devlog
5:40
Challacade
Рет қаралды 237 М.
2D ENEMY Melee Combat in UNITY - Setting Up Character - Part 1
10:01
Sid Makes Games
Рет қаралды 77 М.
Drawing Basic TILES in PiskelApp (Step by Step Tutorial) #1.
19:27
Elliot Greenwood
Рет қаралды 3,1 М.
Escaping Unity Animator HELL
18:18
Lost Relic Games
Рет қаралды 490 М.
Secrets to a Great Platformer Character with Unity
3:11
Dawnosaur
Рет қаралды 52 М.
Easy 2D Melee Combo System in Unity: Tutorial
11:13
ChosenPlay
Рет қаралды 78 М.
MAKING RUN, IDLE & JUMP 2D GAME ANIMATIONS - UNITY TUTORIAL
15:30
Blackthornprod
Рет қаралды 505 М.
2D Melee in Unity Tutorial
19:46
Muddy Wolf
Рет қаралды 13 М.
Can You Really Make A 2D Game In Unreal?
6:09
Thomas Brush
Рет қаралды 72 М.
спидран по ютуб шортс 68 | Битва статуй!
0:42
Шансы на дроп из Яиц 🥚🐣
1:00
makvay
Рет қаралды 2,8 МЛН
Кто забьёт гол ? #логиклаб
0:29
ЛогикЛаб
Рет қаралды 3,7 МЛН
suster ngesot salah culik #shorts #upinipin
0:22
Aska Boy
Рет қаралды 18 МЛН
🤬🐨THEY WANT TO HURT THE KID #ZOONOMALY 🐨🤬
0:43
CATNAP
Рет қаралды 7 МЛН