Unity Top Down Hit Detection for Arrows - Tutorial

  Рет қаралды 25,197

CouchFerret makes Games

CouchFerret makes Games

Күн бұрын

Пікірлер: 90
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
*Hey everyone!* 👏 👏 I'm happy to announce our community *Discord server* , come and *join us* : discord.gg/dac7sr2 And also, you can get all the *Sprites* and *Project Files* by supporting me on *Patreon* : www.patreon.com/CouchFerret
@vsr3276
@vsr3276 5 жыл бұрын
Finally a new episode from the best tutorial!
@protokron5037
@protokron5037 5 жыл бұрын
I was worried you stopped this series. I recently started learning Unity with the intention of implementing a similar game (top down Towerfall). Thank you so much for doing this.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
No way that I'll stop the series. :D I just had some troubles setting up the studio. :)
@CARDSSerus
@CARDSSerus 4 жыл бұрын
@@CouchFerretmakesGames "No way that I'll stop the series!" *Makes one more episode than stops*
@eakfoil
@eakfoil 5 жыл бұрын
Amazing video! Love the new format, it's surprising how seamless the IRL sections mix with the screen captured ones. I loved your explanation of hit detection using markers/paper; very through, easy to follow, and drawing it by hand gives it a nice grounded touch. The amount of polish you put into your videos is always impressive, down to the small things like the plants on your desk. Keep up the good work, and I'm excited to see more!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thanks! I'm glad you noticed the plants, I aligned them to the corners way too many times. :D Yeah, I really enjoyed creating and editing the markers and paper part. And the markers' sound is just outright satisfying. :) I'll definitely have more of this. Thanks for watching!
@givememandu
@givememandu 5 жыл бұрын
Best topdown 2d Unity Tutorial Ever! Love, man!
@MrQuicast
@MrQuicast 5 жыл бұрын
Your videos helped me a lot, I thank you so much, I know your channel will keep growing, and I hope you can upload more videos, for example to implement AI for the enemies or how to design transitions of scenes or also how to interact with objects or people , also how to create a game menu, so many things that could be implemented in a game. Thank you for your help in advance, a greeting from Peru.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
I'm glad they helped. :) I'll cover all of this in the future. Thanks for watching! Cheers!
@kailastnam9793
@kailastnam9793 5 жыл бұрын
Nicely done! I think the way you handle the raycast origin could be better though. you could design a variable for raycast origin and raycast direction. Try to keep code/collision seperate from the sprite. Great job as always, and I like the new style.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thanks for the feedback, noted! :) I try to balance simplicity and structure so the videos remain beginner friendly, but still a reasonable design. I guess I'll separate them when they become a bit more complex.
@loganjones3723
@loganjones3723 5 жыл бұрын
You are one of my favourite KZbinrs!!! So nice and clean videos make it easier to understand. Keep the good work up 👌❤️
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thank you! ^ - ^
@user-em9su3dd9y
@user-em9su3dd9y 4 жыл бұрын
Cool setup, great info too!
@irishbruse
@irishbruse 5 жыл бұрын
So do you have any kind of a schedule for these videos im loving them there are so polished im past this level of tutorials but i just love watching them while i program my game :)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
I always aim for weekly videos, but stepping up the quality takes a lot of time. I plan to settle with this episode's quality so I can upload more frequently. Thanks for watching, and good luck with your game! Let me know if you have something to show! ;)
@ourteammate
@ourteammate 5 жыл бұрын
Thanks for always putting up such amazing content for us👌
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thank you guys for always showing up and watching my stuff. ^ - ^
@brandanediger8127
@brandanediger8127 5 жыл бұрын
CouchFerrett, you are an excellent teacher and you look exactly how I expected XD
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
I’m glad I met your expectations exactly :D.
@yaseenwaqas4627
@yaseenwaqas4627 5 жыл бұрын
Amazing video you explain every thing excellent thanks.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thank you! :)
@ayoubchari242
@ayoubchari242 5 жыл бұрын
Thank you soo much
@kurosawa1120
@kurosawa1120 5 жыл бұрын
waiting for more tutorials!!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
I'm on it! ;)
@giggleghost3751
@giggleghost3751 5 жыл бұрын
I love this FORMAT! 💖 Your video is awesome, keep up the good work!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thank you! :)
@abdallhhelles
@abdallhhelles 5 жыл бұрын
Awesome channel .. keep posting ♡
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thank you!
@fastpicker89
@fastpicker89 5 жыл бұрын
1) Hurry up with the next video! These are amazing! 2) Any reason that instead of offsetting the arrow to match the player's rigidbody -- couldn't you create one rigidbody that only applies to walls, and another that applies to arrows?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thanks! :) Could you elaborate on #2? I don't get it. :/
@GuilhermeMaia100
@GuilhermeMaia100 4 жыл бұрын
Good tutorial. What i was thinking is : is there a way to automatically pass the velocity and the archer to the arrow while it is instancing? Like a constructor for example instead of having to use GetComponent every time time you instantiate the arrow
@bluegoodev2085
@bluegoodev2085 5 жыл бұрын
Hi CF! Great tutorial as always and the quality and camera angles are amazing, also love the pen and paper approach! I have a thing I’m thinking about in my game which has a similar perspective as yours. Should arrows/bullets ever pass behind the player/enemy? Or should the hitbox always be the full size of the player? It would add depth and realism to have bullets go behind, but I can’t figure out how the hitboxes should look. I’m thinking about using a ground hitbox on each bullet and a hitbox on the player which is from his feet to his knees. Haven’t tested it yet, but do you think it could work? :)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Yeah, I think that would work. However, this issue is very tricky, I've straggled a lot with it. You don't want to have it too realistic to the perspective, because then the players could think that it is unfair and broken when an arrow goes behind an archer. I made a proof of concept version of this game like a year ago, and if I remember correctly, I had a separate collider on the archer that was only used to detect the arrows, and it was a bit bigger. It wasn't full archer sized but like half of it, and definitely bigger than the one I used to collide with walls. And the arrows used raycasting which was offset to the ground just like in this video, but instead of simple linecast I used circlecast. With circlecast, basically you can add width to the rays. I'll address this problem in the future, but I think I'll go for a solution between the realistic and the full archer sized collider. Cause it seemed to me that the full realistic version like the one we have in this video could seem bit unfair and broken. Good luck, and let me know what did you end up with! :)
@bluegoodev2085
@bluegoodev2085 5 жыл бұрын
CouchFerret makes Games Thanks for the detailed comment! I didnt realize you wrote so much :) I will let you know once I’ve implemented shooting in my game :) Looking forward to future videos!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
@@bluegoodev2085 Thanks man! Good luck!
@ThomasChen-ur2gt
@ThomasChen-ur2gt 5 жыл бұрын
I am trying to apply a force to the player when it gets hit, but it's not working because we are resetting the velocity every frame. How can I get around that?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Ohh, that's a tough one. I'll look into it.
@mayankbhaisora2699
@mayankbhaisora2699 2 жыл бұрын
Hey man… Is there any budget game controller which you would suggest to play and test games on M1 macbook?
@Caslte371
@Caslte371 5 жыл бұрын
Thank you.
@indielootDE
@indielootDE 5 жыл бұрын
Perfect Tutorial!!! I like it alot. Keep up the perfect work. One Question, is ist possible to get the Sprites?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Send me an email and I'll send them back to you. The address is on my channel's about page. :)
@indielootDE
@indielootDE 5 жыл бұрын
Sent you an E-Mail. Hope you recieved it.
@fernandopinto4393
@fernandopinto4393 5 жыл бұрын
What a man !!!
@reed9269
@reed9269 5 жыл бұрын
at first i thought that arrow would continuously cast raycast infront of it and if it's lenght would be say less than 0.01 it wold collide, do you think it could work?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Actually, that could work, yeah.
@UnicGamesReviewsmore
@UnicGamesReviewsmore 5 жыл бұрын
Hey man, i just started with yout animation tutorial for windows. What i liked about ist was the xlear structure and that it seems like you know exactly what you do. But please try to speak a little bit slower and give us little breakes between the steps. So we can think about what you just did ans try to understand everything. Also it would be cool if you can explain the code scripts more. Thank you for your effort. :)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Roger that! :) I have to find a way to slow down while avoiding being boring. But I'm working on it. Thanks for the feedback! :)
@UnicGamesReviewsmore
@UnicGamesReviewsmore 5 жыл бұрын
@@CouchFerretmakesGames your welcome. Sorry for my misspelling 😁
@fastpicker89
@fastpicker89 5 жыл бұрын
@@CouchFerretmakesGames I watch the videos on 0.75x speed ;)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
@@fastpicker89 I record them on 1.25x :D
@ufukseyithan
@ufukseyithan 3 жыл бұрын
Why are we using LinecastAll instead of Linecast?
@arkadqta6987
@arkadqta6987 5 жыл бұрын
thankkkkk uuuu! hehe
@6y6oH-0_0
@6y6oH-0_0 5 жыл бұрын
Круто, спасибо!
@mahrcheen
@mahrcheen 4 жыл бұрын
00:00 I was thinking you speak about collisions in microstransactions xD - You try cause da man to pay us or hit walls xD like a paywalls.
@adamsparker
@adamsparker 5 жыл бұрын
This is not a tutorial, this art.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Thanks man! :)
@nicklasandersen7785
@nicklasandersen7785 5 жыл бұрын
Bro. These videos are amazing, but please add some tutorial sprites, we can use to follow your tutorial.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Hey, thanks man! They’ll be soon available, but until then, shoot me an email and I’ll send them back to you. The address is on the channel’s About page.
@JoevinF1
@JoevinF1 5 жыл бұрын
I have the impression that we have something in common !
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Wow, a fellow ferret. Welcome my ferret brother! :)
@zaizailiang223
@zaizailiang223 5 жыл бұрын
I am coming!
@mohammednihad6755
@mohammednihad6755 5 жыл бұрын
Thanks a lot you can also use Rigidbody.collisionDetectionMode I think setting that to "Continuous" will also help solving the problem :)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
It definitely solves the first problem, but I'm not 100% sure that it solves the second problem with the archer behind the wall. I have to double check it, maybe I'll make a quick little video and/or gif about testing the different collision modes and raycasting solutions. That would be fun. Thanks for the feedback! :)
@GnomeHard
@GnomeHard 5 жыл бұрын
Great tutorial, you should make a discord server.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
I will as soon as I get back from vacation. Stay tuned! :)
@GnomeHard
@GnomeHard 5 жыл бұрын
@@CouchFerretmakesGames Cool, have a nice vac! :)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
@@GnomeHard Thanks!!
@pudj3557
@pudj3557 5 жыл бұрын
add joystick or buttons for android pls
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
There are a few good free assets on the asset store for that. Check them out!
@m4dara233
@m4dara233 5 жыл бұрын
I finally saw your real face xD.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Oh boy :D, does this mean that I'm a celebrity now? Should I be worried? :D
@winterfallstudios7101
@winterfallstudios7101 5 жыл бұрын
Omg never klicked so fast
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
:D
@winterfallstudios7101
@winterfallstudios7101 5 жыл бұрын
Thanks for the heart i'm making a 3d Third person game with my friend. I'm posting about it on my channel, after this game i've got an idea for a super Mario 3d World like game
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
@@winterfallstudios7101 Cool stuff man! Good luck, and keep up the good work! :)
@sergius4691
@sergius4691 5 жыл бұрын
That accent..... hmmm. Mit csinalsz?😎🤪
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Áj dont no vat lyú ár beszelsz öbáut.
@sergius4691
@sergius4691 5 жыл бұрын
@@CouchFerretmakesGames ahahahahahahahahahahahahahahahahhaha, made my day!
@MRzFIRE
@MRzFIRE 5 жыл бұрын
Face Reveal!!
@livcool6175
@livcool6175 5 жыл бұрын
Are you gonna join the game jam from CodeMyst, Sykoo, Blackthornprod Games, Dani, Brackeys, AquaXV, Yilian, TheDutchMagikarp, Duxez
@RaidenHeaven
@RaidenHeaven 4 жыл бұрын
It's not on frame it's a fixed update.
@ourteammate
@ourteammate 5 жыл бұрын
First yay, 🤗
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Here's your 🍪for your first place! :)
@Great.Milenko
@Great.Milenko 4 жыл бұрын
i feel bad when i see someone using a laptop for long working hours.
@mycelianotyours1980
@mycelianotyours1980 Жыл бұрын
So much wasted paper....
Unity Top Down Respawn Mechanism - Tutorial
17:20
CouchFerret makes Games
Рет қаралды 20 М.
TOP DOWN MOVEMENT in Unity!
22:30
Brackeys
Рет қаралды 1,2 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
The Trick I Used to Make Combat Fun! | Devlog
8:12
Game Endeavor
Рет қаралды 1,7 МЛН
How I added LOTS of weapons to my game!
5:18
Bardent
Рет қаралды 58 М.
Raycast Unity 3d - unity raycast tutorial
5:40
Pixelbug Studio
Рет қаралды 54 М.
Everything You Need To Start Making Games (As A Beginner)
16:11
Juniper Dev
Рет қаралды 131 М.
Unity Top Down Character Controller with Aiming and Shooting - Tutorial
15:24
CouchFerret makes Games
Рет қаралды 67 М.
3 ways to do a Ground Check in Unity
15:58
Code Monkey
Рет қаралды 225 М.
2D Projectiles in Unity - Tutorial
25:19
UnPaws Games
Рет қаралды 6 М.
Unity Top Down Colliders and Character Movement - Tutorial
8:32
CouchFerret makes Games
Рет қаралды 200 М.
How Do Game Devs NOT Overscope??
9:04
Green Light Dev
Рет қаралды 11 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2,1 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН