Тёмный

How To Make Basketball Game In 5 Steps | Beginner Tutorial In Unity 

One Minute Games
Подписаться 4,5 тыс.
Просмотров 43 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 162   
@AIAdev
@AIAdev 2 года назад
Great tutorial. Here to boost the algorithm. This deserves to be seen.
@oneminutegames7308
@oneminutegames7308 2 года назад
Thanks mate! I appreciate that
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
For anyone wondering how to make the basketball miss, I thought of a very easy solution. On your TargetPoint object (Where the ball is directed to) Add this script: using UnityEngine; using System.Collections; public class BackAndForth : MonoBehaviour { public float delta = 1.5f; // Amount to move left and right from the start point public float speed = 2.0f; private Vector3 startPos; void Start () { startPos = transform.position; } void Update () { Vector3 v = startPos; v.x += delta * Mathf.Sin (Time.time * speed); transform.position = v; } } What it does is that it makes the TargetPoint move left and right so that the ball is directed to it no matter where it is, giving you a chance at missing, hope this helped!
@fadezesty9186
@fadezesty9186 Год назад
Did help very much for my school project thank you
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
@@fadezesty9186 No worries! Glad I could help.
@carlosfort
@carlosfort Год назад
You are a Crak, this help me a lot.
@paraloski3040
@paraloski3040 3 месяца назад
hey idk if u still read everything. but now what to do if the ball gets stuck on the ring. is there any way to fix that? becuase ive had some times that he just sits there on the ring not being able to pick it up again
@muhammadumair6306
@muhammadumair6306 2 года назад
This guy truly deserves a sub and like because the way he explains things is absolutely awesome. ❤ Keep these short awesome tutorials coming…!
@lifeisbeautiful5998
@lifeisbeautiful5998 2 года назад
Yes we need more toutorisl like these m.yhese are beter
@Khud0
@Khud0 11 месяцев назад
Your channel is a perfect example of "fake it till you make it" principle in gamedev, and I LOVE it! Your approach to simplifying stuff that's normally very complex is mind-opening: it made me look at coding from a very different perspective. Thank you! I really hope you'll keep sharing your powerful magic with us. :)
@oneminutegames7308
@oneminutegames7308 11 месяцев назад
There’s much more faking also in the professional game dev as you’d imagine, even in the biggest studios ;)
@bhautikranpara7664
@bhautikranpara7664 2 года назад
In one minutes you are teaching so much good content. Excellent bro
@redneckish
@redneckish 2 года назад
This is by far one of the best tutorials out there, it's quick, and it actually works in the end. Thank you so much I don't think you realize how many people have been waiting for this exact tutorial!
@sabhazainab3551
@sabhazainab3551 2 года назад
Hi
@sabhazainab3551
@sabhazainab3551 2 года назад
Did it work out for u
@sabhazainab3551
@sabhazainab3551 2 года назад
Please do reply
@redneckish
@redneckish 2 года назад
@@sabhazainab3551 Yes it worked. Also if you want to make it to where you dont make every shot make the target (above the hoop) move in a line across the backboard. I was able to change the character too but still working on the animations.
@sabhazainab3551
@sabhazainab3551 2 года назад
Can I have ur num mine is not working
@JDotSPeriod
@JDotSPeriod 2 года назад
Best basketball tutorial I've seen yet! Thank you for this!
@freezinfire
@freezinfire 2 года назад
I can see this channel going to infinity.
@gasiedu
@gasiedu 2 года назад
only found this yesterday and im hooked , hope you get more subs
@MuhammadNaveed-pq3oi
@MuhammadNaveed-pq3oi Год назад
Really love that tutorial. Make that kind of more ❤️❤️❤️
@annexgroup6878
@annexgroup6878 2 года назад
This is the coolest thing I've seen in a while. Thank you SO SO much for sharing this with the world!! 🌎
@waffel6378
@waffel6378 2 года назад
boosting the algorithm!!!
@GameOnBudget
@GameOnBudget Год назад
Great Budd 🔥🤍
@chillseekerthechillseeker
@chillseekerthechillseeker Год назад
Oh man I'm sad you havent been uploading lately. These tutorials are cool and fun! I love my little drift car. Would like to learn so much more.
@nuku142
@nuku142 2 года назад
Amazing "tutorials" - really like your style of doing this. Please keep it up, stay safe.
@SuperMillwall
@SuperMillwall Год назад
This is amazing. The only thing missing is the ball not always going in the hoop. Would be good to have a bar when you shoot, if you stop it in the green you make a successful throw and if you hit the red you make an unsuccessful throw. Amazing work though!
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
I thought of a very easy solution to make it miss sometimes. On your TargetPoint object (Where the ball is directed to) Add this script: using UnityEngine; using System.Collections; public class BackAndForth : MonoBehaviour { public float delta = 1.5f; // Amount to move left and right from the start point public float speed = 2.0f; private Vector3 startPos; void Start () { startPos = transform.position; } void Update () { Vector3 v = startPos; v.x += delta * Mathf.Sin (Time.time * speed); transform.position = v; } } What it does is that it makes the TargetPoint move left and right so that the ball is directed to it no matter where it is, giving you a chance at missing, hope this helped!
@gabriel-xh8uo
@gabriel-xh8uo 2 года назад
Thank you very, very much. 😍😍😍😍😍😍🙏🙏🙏🙏 I've been looking for him for a long time. I wish you'd come sooner.
@lifeisbeautiful5998
@lifeisbeautiful5998 2 года назад
Plz weekly 🙏 upload 2 videos ...make 60 more videos on one minute gaming making video ..plzxxx You video deserves to be seen and apriciated ..sharing your video in discord snd telegram..thank u ..
@thepralad1484
@thepralad1484 2 года назад
top notch tutorial! this guy deserves more subs. already subbed!
@6riz287
@6riz287 2 года назад
Awasome! Continue so short videos :)
@AmineGM73
@AmineGM73 6 месяцев назад
Cool tutorial, appreciate it!!! also why you stopped submitting new videos
@oknaa8526
@oknaa8526 2 года назад
nice tutorial :D i love your simplistic voxel style
@CCV334
@CCV334 2 года назад
Very cool you got and you just got a new subscriber. Looking forward to more one minute games!
@mjad7
@mjad7 2 года назад
Hi, this is awesome, please continue this game as a series with players being able to miss shots, multiplayer using photon. Your channel will blowup if you continue working on this. RU-vid is missing good tutorials for multiplayer games and games that have all the desired features like missing shots, scores etc.
@redneckish
@redneckish 2 года назад
Hello. If you want to make the ball miss sometimes, make the target move in a line across the backboard. Also make the ball bouncy just to make it a bit more realistic and it can bounce off the rim if you make the target a little higher than the hoop.
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
@@redneckish What do you mean by "Make the target move in a line" I need help with making him miss a few shots, please reply ASAP
@redneckish
@redneckish Год назад
@@Yusuf-jl6ot create 2 points across the backboard and make the target (where the ball goes) move from point to point in a line constantly
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
@@redneckish I already figured it out, thanks. If you know how to add a second player, that would also be helpful :)
@innerkin4613
@innerkin4613 Год назад
Amazing tutorial!at 2:59
@soksopanha7348
@soksopanha7348 2 года назад
Deserve a subscribe man. Found new brackeys thoo.
@khushalgrover1251
@khushalgrover1251 2 года назад
Awesome tutorial 🤟🤟
@MrVook
@MrVook 2 года назад
Awesome work you are doing!! Like others have said, people need to see this, so im commenting for the algorithm. Subbed aswell!
@satyamroriya6273
@satyamroriya6273 2 года назад
Amazing ...thanks for tutorial
@BaDbOy-wj1ii
@BaDbOy-wj1ii 2 года назад
I love you bro just keep uploading
@durvids474
@durvids474 2 года назад
This is too good. Subscribed!
@fess24
@fess24 2 года назад
Wow, cool! Thanks a lot!
@LocalMudder
@LocalMudder 2 года назад
great, i really like this kind tutorials
@tonghoanghai7346
@tonghoanghai7346 2 года назад
Nice video bro
@lummy._.0
@lummy._.0 2 года назад
Best tutorial i have ever seen Amazing. short. Basics-Containe Perfect tutorial 👍🔥
@MikeyyMonty
@MikeyyMonty 2 года назад
Hey awesome work on this tutorial!
@66Neo66
@66Neo66 2 года назад
wonderfull! u are the best man 👍
@fandusmercius723
@fandusmercius723 Год назад
aye bro be ballin
@SunSailor
@SunSailor 2 года назад
"Defense didn't clear the ball" - the tutorial reminds me totally of 1 on 1 basketball on the C64, long lost times.
@annexgroup6878
@annexgroup6878 2 года назад
Please keep posting videos!!
@CreateCG1
@CreateCG1 Год назад
and yes can u make a full series with a bunch of these low poly kind of minigames with difficulty also and yes how to mix it all together
@danielgrimaldi6834
@danielgrimaldi6834 2 года назад
Great Tutorial as always! But what if I want to AddForce to the ball, based on the direction of the player?
@warningoutofmind5526
@warningoutofmind5526 Год назад
love this
@fatpig1031
@fatpig1031 2 года назад
I’m having problems with the last step when I’m going to pick up the ball. It says that the modifier private isn’t valid in the item. Code “ private void OnTriggerEnter(Collider other) { “ and then I can’t pick up the ball. Any help will be nice
@madpelican9242
@madpelican9242 2 года назад
Probably would be a good idea to clamp direction vector magnitude, so the player speed would be persistent
@oneminutegames7308
@oneminutegames7308 2 года назад
For sure, I left it out for the simplicity.
@ScraitStressin
@ScraitStressin Год назад
@@oneminutegames7308 nothing is simple when it comes to this
@delphinemaimo3
@delphinemaimo3 Год назад
Hey im subscribed but how do you add in the files?
@CreateCG1
@CreateCG1 Год назад
Can u make a tutorial on how to add an enemy and a score counter.. and if the enemy gets the score to 3 or 5 1st then he wins and it displays a “You Lose” sign and if the player gets 3 or 5 points (score) 1st then it displays “You Win” and yes we can play with our friends it will display an option to play with a friend or a bot And can u make more low poly games like these with the idea given above?
@Eite8
@Eite8 2 года назад
Wow. Thank you very much~!!!
@sabhazainab3551
@sabhazainab3551 2 года назад
Hi u got how to do ths game i am stuck in between can u help me please
@calvinchien2
@calvinchien2 2 года назад
When adding the transform.LookAt(Target.parent.position); step, my character's entire body rotates upward to face the hoop and making him sink into the ground. (instead of just rotating on the y-axis and staying feet flat on the ground). Do you know what might have gone wrong?
@oneminutegames7308
@oneminutegames7308 2 года назад
Pivot points of the objects are probably not at the right places. Both hoop and character need to have y coordinate at 0.
@calvinchien2
@calvinchien2 2 года назад
@@oneminutegames7308 That worked thank you. Love your videos!
@BaDbOy-wj1ii
@BaDbOy-wj1ii 2 года назад
@@calvinchien2 thanks for having same problem
@dinoman1963
@dinoman1963 2 года назад
Can you do a shooter game pls your tuto are cool and easy
@fillowskyy
@fillowskyy Год назад
hi, when throwing my character leans to the side and if he wants to walk with it, he walks around his own axis and his hands are in space...
@xdklaxxon6834
@xdklaxxon6834 2 года назад
Hi! Amazing tutorial but can you help me with walls? My character can walk in air...
@adhviklalthoppe2214
@adhviklalthoppe2214 Год назад
Just add a rigidbody to add physics to your character and gravity will be added automatically
@alphaedge.multimedia
@alphaedge.multimedia Год назад
Bro, can you some game like bubble/ball sort?
@kingdom216
@kingdom216 Год назад
How would someone accomplish this with a third person avatar and the player input system?
@xrpl1_nyomanbayusurapati70
@xrpl1_nyomanbayusurapati70 Год назад
Hey, how do you pick up multiple objects? like that trash game object. Are you using array? maybe you can explain it to me :) thank you
@matteoburzi9016
@matteoburzi9016 Год назад
pt 2 pls
@davidtourangeau
@davidtourangeau 2 года назад
Any chance to have a football (soccer) kind of game like this?
@Kishan_S1ngh
@Kishan_S1ngh 2 года назад
can you tell me how to add score where to do the changes to add score
@quincyparsadmehr7260
@quincyparsadmehr7260 Год назад
why does my ball move me around after i pick it up the second time
@annexgroup6878
@annexgroup6878 2 года назад
Hello! Is there any way this could be made into an Android application? Love your channel
@swagpodu9696
@swagpodu9696 5 месяцев назад
Where to watch your bonus content??
@oneminutegames7308
@oneminutegames7308 5 месяцев назад
Currently these videos here on youtube are all there is. You can also find the bonus project files on Patreon and explore and learn from the code directly.
@kadenwright4198
@kadenwright4198 2 года назад
Does anyone know how to make a VR basketball game that could help me with some of the components
@PurrrpleApe
@PurrrpleApe Год назад
How can I make the ball bounce off of the hoop?
@sabhazainab3551
@sabhazainab3551 2 года назад
Hi can you please help me to make the cube character
@CreateCG1
@CreateCG1 Год назад
can u make a more simple version?
@oliverherlofsen3398
@oliverherlofsen3398 Год назад
Im having problems with the character rotating weirdly when supposed to be facing the TargetPoint, any ideas on how to fix this?
@SMineDragos
@SMineDragos Год назад
i have the same problem did you solve it ?
@ps5games821
@ps5games821 2 года назад
Make more videos please
@hskb0k579
@hskb0k579 Месяц назад
why does my basketball dissapear
@RossTubes
@RossTubes Год назад
so for some reason if i make the arms a parent which should be the easiest thing the empty gameobject which the arms are on switches to the same level and doesnt change the way the arms rotate? which is very new to me cuz normally this would work fine... any suggestions?
@dishamudgal391
@dishamudgal391 Год назад
besides the editor tool on the left there is a toggle tool thingy (pivot/center as opts) turn it to pivot the empty game object...I was having the same issues too
@TurtleCode-
@TurtleCode- Год назад
@@dishamudgal391 it won’t work still when I did that
@dishamudgal391
@dishamudgal391 Год назад
@@TurtleCode- was giving me a lot of issues, but I kept trying and it worked I guess I set it for both child and parent? or just child and just parent try something I did something and it worked
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
Hey, I kinda need help with this since I don't know how to explain it in Reddit, I know how to add another player and change the if statement to make the controls the arrow keys, etc. But I don't know how to do something where you could steal the ball from them, and I don't know how to add a point system fr when the ball goes in a specific area (The hoop). Please reply ASAP, any help would be appreciated.
@PurrrpleApe
@PurrrpleApe Год назад
Did you manage to fix the problem with stealing the ball?
@Yusuf-jl6ot
@Yusuf-jl6ot Год назад
@@PurrrpleApe Unfortunetely no, I stopped this project a while ago, but I think you can definetely use ChatGPT for a solution. Hope this helps.
@chrisalbers9184
@chrisalbers9184 Год назад
I can help with a scoring system if you need that still
@aleksanderigowski6528
@aleksanderigowski6528 2 года назад
Hey can you tell me how ball can stop teleporting to my player when i press space ?
@oneminutegames7308
@oneminutegames7308 2 года назад
Part of the code with space input is probably not inside the if statement which checks that the ball is in the hand first.
@ScraitStressin
@ScraitStressin Год назад
Can I use C++ coding and unreal engine with these same steps?
@oneminutegames7308
@oneminutegames7308 Год назад
Some of the steps and method names are gonna be different, but the principles are the same
@robertjohnson2750
@robertjohnson2750 2 года назад
HELP PLEASE!!! When I add the LookAt method it makes the player skip on either the x or z axis as opposed to moving smoothly. Is this something in my Input or with how I set up the objects?
@oneminutegames7308
@oneminutegames7308 2 года назад
Hard to say from the comment what could it be, check the origin point of the objects.
@robertjohnson2750
@robertjohnson2750 2 года назад
@@oneminutegames7308 Should they all be from 0, 0, 0?
@oneminutegames7308
@oneminutegames7308 2 года назад
When you double click on a prefab to go inside in the predab mode (check documentation), graphics should be at the 0,0,0, or rather origin should be at the feet in case of the player.
@CassiusThePro
@CassiusThePro 2 года назад
@@oneminutegames7308 huge help. It was definitely the position.
@Bandraxx
@Bandraxx 2 года назад
Great one! One question.. What is the best way to implement mechanic where there is possibility to miss the shoot ?
@oneminutegames7308
@oneminutegames7308 2 года назад
You can add Random.insideUnitSphere to the target position, there is explanation in one of the comments bellow.
@Bandraxx
@Bandraxx 2 года назад
​@@oneminutegames7308 One more.. How to make character bump into another object and not go through it ? Btw this channel is going to be big ! I subscribed instantly.
@oneminutegames7308
@oneminutegames7308 2 года назад
@@Bandraxx thanks, appreciate it! It’s a bit different system I’m gonna address in a future video. Google CharacterController.
@syfiria
@syfiria 2 года назад
@@oneminutegames7308 I don't understand how to Add Random.insideUnitSphere
@chiefkaif
@chiefkaif Год назад
Guys, how can I make “score” in this code?
@PurrrpleApe
@PurrrpleApe Год назад
Did anyone manage to make a score counter?
@comicalscripter613
@comicalscripter613 2 года назад
when I hit space my player like explodes
@annexgroup6878
@annexgroup6878 2 года назад
Can you make this work on Android device
@kason.1238
@kason.1238 2 года назад
I'm at the hold and dribble section my ball won't follow me, if I press space and let go, it goes back to the original position, the ball does not dribble and follow me when I move
@kason.1238
@kason.1238 2 года назад
@One Minute Games
@kason.1238
@kason.1238 2 года назад
I got it
@oneminutegames7308
@oneminutegames7308 2 года назад
What was the issue? I wanted to say to make sure PosDribble object is parented under the character in the hierarchy, if anybody else has the same problem.
@kason.1238
@kason.1238 2 года назад
@@oneminutegames7308 Yeah that was it
@chrisalbers1370
@chrisalbers1370 Год назад
@OneMinuteGames No matter my collider size i pick up the ball from way to far away after i shoot. Any advice how to fix this? Thanks in advance!
@chrisalbers1370
@chrisalbers1370 Год назад
Also, I made a power up bar if anyone is interested feel free to message me.
@chrisalbers1370
@chrisalbers1370 Год назад
The power up bar has a value when released and I will be assigning other targets points if the shot is long or short etc.
@chrisalbers1370
@chrisalbers1370 Год назад
Nevermind I fixed it! If anyone else is having this problem where you pick up the ball from too far away here you go: create a tag called "ball" and tag the ball object in the inspector as "ball". Then change the last method to this: private void OnTriggerEnter(Collider other) { if (!IsBallInHands && !IsBallFlying && other.gameObject.tag == "Ball") { IsBallInHands = true; Ball.GetComponent().isKinematic = true; }
@marcando666
@marcando666 Год назад
@@chrisalbers1370 I'm interested..
@chrisalbers1370
@chrisalbers1370 Год назад
@@marcando666 what is your email?
@fillowskyy
@fillowskyy Год назад
Woow
@syedsadiq8631
@syedsadiq8631 2 года назад
Add some other players it can fun to play !!!?
@oneminutegames7308
@oneminutegames7308 2 года назад
You can duplicate the character prefab and add another set of controls in Input Manager, then write an if statement to tell which keys go to which character .
@KaijuRoblox1
@KaijuRoblox1 2 года назад
how do i make enemy AI
@santiagocanamar1615
@santiagocanamar1615 2 года назад
with the empty object pivot, the arms are still rotating on elbows...
@sabhazainab3551
@sabhazainab3551 2 года назад
Can you please help me also
@sabhazainab3551
@sabhazainab3551 2 года назад
Can you send me your num i have some doubt please
@santiagocanamar1615
@santiagocanamar1615 2 года назад
@@sabhazainab3551 I already did it... check at the top left in your screen, there is an icon that says Object... click on it and change it to pivot, dont know if I explained myself correctly but thats how I did it
@sabhazainab3551
@sabhazainab3551 2 года назад
@@santiagocanamar1615 ok sure can i have ur wattsapp num so i have dnt to ask how to make character
@CCV334
@CCV334 2 года назад
is it possible for the player to miss the goal?
@oneminutegames7308
@oneminutegames7308 2 года назад
You can add Random.insideUnitSphere to the target position in the ball flying part of the code.
@levseidman7058
@levseidman7058 2 года назад
@@oneminutegames7308 How would you do that, I am a bit confused on it
@scrub2657
@scrub2657 2 года назад
@@levseidman7058 Random.insideUnitySphere returns a vector3 (position) I'll write an example on how you can use this to randomise the end position. example variables: Vector3 hoopPos
@Bandraxx
@Bandraxx 2 года назад
@@scrub2657 Can you explain for even bigger noobs, please? :D Where those variables goes, are they public and where line rndHoopPos = hoopPos + Random.insideUnitSphere * radius; shoud be put ?
@scrub2657
@scrub2657 2 года назад
@@Bandraxx in the controller script. Create a private Vector3 rndHoopPos; (anywhere that is not inside a function) You can also create a public float radius to change the radius directly in the inspector We will use this to get the random position later. Inside the if statement where we throw the ball, set rndHoopPos like I showed in the earlier comment. Then when we do Vector3.Lerp (ball going towards target), replace Target.Position with rndHoopPos. I show again: private Vector3 rndHookPos; public float radius; (Inside if statement where we look for throw input) rndHoopPos = Target.position + Random.insideUnitSphere * radius; Where we lerp: Replace Target.position with rndHoopPos.
@harryhaz4629
@harryhaz4629 2 года назад
My game didn't work. Firstly, if i walk while dribbling the ball will move away from me and secondly when i pick the ball up after shooting it disappears to a random spot. Please help. This looks awesome and I desperately want this to work.
@oneminutegames7308
@oneminutegames7308 2 года назад
Hard to say what could cause this. Make sure that ball is not parented under the charater. And double check the code where ball position is calculated.
@harryhaz4629
@harryhaz4629 2 года назад
@@oneminutegames7308 Yeah Thank You so much I checked the code where the ball position is calculated and its working. Is there anyway you can add like enemy ai that you can play. Thanks you have earned yourself another subscriber.
@shafindev
@shafindev 2 года назад
You need to make your thumbile more instersting
@oneminutegames7308
@oneminutegames7308 2 года назад
Do you have any suggestions?
@lifeisbeautiful5998
@lifeisbeautiful5998 2 года назад
@@oneminutegames7308 if u want I can make your thumbnail
@The_bolz
@The_bolz 2 года назад
Ure way to fast i the Arms dont move how thy shuld like in second 0:30 Disslike for me
@GameDeveloperTR
@GameDeveloperTR 2 года назад
Amazing ...thanks for tutorial
Далее
They Dared Me To Make A Game...
12:08
Просмотров 1,1 млн
# funny#daily#vlog#family#prank
00:12
Просмотров 7 млн
БЕЛКА РОЖАЕТ? #cat
00:21
Просмотров 602 тыс.
I Made the Same Game in 8 Engines
12:34
Просмотров 4,1 млн
I Paid Fiverr Game Developers to Make the Same Game
10:25
This Game Can't be Explained
19:20
Просмотров 6 млн
I Spent 2,000 Hours Using Scratch
13:59
Просмотров 589 тыс.
Can AI code Flappy Bird? Watch ChatGPT try
7:26
Просмотров 9 млн
Results After Releasing my First Game on Steam
15:07
Просмотров 2,1 млн
Why I’m switching from Unity to Unreal Engine
9:02