How To Make PONG in Unity! [FULL GAME TUTORIAL]

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

AlexJDev

AlexJDev

Күн бұрын

Пікірлер: 68
@AlexJDev
@AlexJDev Жыл бұрын
Hi! I haven’t uploaded in a while but am looking to get back into the channel *soon*. Thanks for all the feedback, my apologies for how small the text is in vscode. Will definitely look at changing this next time! My style is going to change to more of a devlog with all code provided via GitHub at the end :)
@blacknwhite1313
@blacknwhite1313 9 ай бұрын
thanks Respected tutor
@danthon1267
@danthon1267 4 ай бұрын
Hope you come back soon!
@prerananayyar1953
@prerananayyar1953 4 ай бұрын
@@danthon1267do u know what he used to when he set up the project like a 2d or 3D
@mjagatkar88
@mjagatkar88 6 ай бұрын
Ball ❌️ Bull ✅️ Thank You for this tutorial 🙏🏽
@jakefagan2564
@jakefagan2564 Жыл бұрын
This was the best tutorial I found, in terms of the final result. Especially the way you set up the yDirection, in that it relates to the bounds of the paddle!
@k1ng.Gaming
@k1ng.Gaming 2 жыл бұрын
I recommend this tutorial! It was a good one (the best so far) I searched for like 2 hours and finally found yours! it helped me a lot THX!
@casetern1610
@casetern1610 2 ай бұрын
Such a good video with best explanation!!! You got a new Subscriber and hope so you will start posting again :)
@AlexJDev
@AlexJDev 2 ай бұрын
Thanks man! I’m working on a new video and should be regularly uploading soon!
@paulembleton1733
@paulembleton1733 Ай бұрын
Decided to recreate Pong with extras. I know Unity basics and I’m an experienced developer so didn’t look at any tutorials. Now checking tutorials after finishing basic game and liking those that did much the same as me so that’s a 👍 for this one. Only criticism, if ( isTutorial ) playBackgroundMusic = false;
@TiredEyesStudio
@TiredEyesStudio 4 ай бұрын
Just wanted to share my stupidity here lol when I got to the Invoke method part of typing in Invoke("StartBall", 2f); and it wouldn't work meaning the ball never moved. I went back to see if I missed something, and I was like "I literally did this to the tee! So what the fuck is the problem here?" I spent the last three days learning all that I could about the Invoke method and its limits and even coroutines, and a couple minutes ago I watched this video again and realized....I typed in "Startball" instead of "StartBall".......I forgot to capitalize the B....and then the ball moved lmaoo three days to just figure out it was that. Wanted to share that. Great video! My mistake helped me learn more.
@SunnyNightmares13
@SunnyNightmares13 5 ай бұрын
Thank you so much it took a while to figure out what was going on but I made the game with your help thank you
@danthon1267
@danthon1267 4 ай бұрын
Congratulations! You got a new subscriber! Now you have 158
@garrettblackard2288
@garrettblackard2288 7 ай бұрын
i only have one tip. ctrl mouse wheel in vs. had to break out my magnifying glass. but great stuff i needed the platform movement for something
@MrBooBooOfficial
@MrBooBooOfficial Жыл бұрын
Also, when the ball hits my side, the counter doesnt go up... why?
@ephraimcarter7918
@ephraimcarter7918 7 ай бұрын
Amazing video! I followed it and felt like I learned so much, however, the music drove me crazy.
@t.mahesh6365
@t.mahesh6365 Ай бұрын
I tried this , but in game ball doesn't move until I tried to move it by scene what problem is this
@savagecatdev
@savagecatdev Жыл бұрын
love the minecraft bg music
@Florea-on2zk
@Florea-on2zk 9 ай бұрын
I've written the player movement script exactly the same but the movement: isAI: and Movement Speed: are just not showing up as variables. What have I done wrong?
@SmallMine1
@SmallMine1 9 ай бұрын
Same happened to me
@evangelinaaron906
@evangelinaaron906 3 ай бұрын
make the isai and movement speed public!
@37dot3
@37dot3 3 ай бұрын
text doesnt change when i make a goal and the ball doesnt resets sorry for my english im german
@ghoste2755
@ghoste2755 Жыл бұрын
Besides the fact that you went a bit fast, and I got confused a couple times, I've had this issue so many times before, its not detecting the collision
@ali_afsharnjd
@ali_afsharnjd Жыл бұрын
This tutorial Was awsome Thank you so much
@ivanbecerragalvan798
@ivanbecerragalvan798 9 ай бұрын
Thank you so much!!!!!!!😀😀😀
@trancongvinh4998
@trancongvinh4998 2 ай бұрын
Can I have the ball movement code ?
@henryxXfun_timesXx
@henryxXfun_timesXx 10 ай бұрын
Why does the ball stop dead on when it comes in contact with my racket or the wall?
@OINH17
@OINH17 8 ай бұрын
Have you addded the bounce physic to the gameObject?
@vandanavinni9132
@vandanavinni9132 7 ай бұрын
same here, can you please give the solution
@EkremKaya-zn3mb
@EkremKaya-zn3mb 10 ай бұрын
why font so small,i can not see anything
@yahyabzl1112
@yahyabzl1112 8 ай бұрын
Click on playerscore/ aiscore and make the scale bigger
@RicFF13
@RicFF13 4 ай бұрын
Womp womp
@madmajima33
@madmajima33 Жыл бұрын
My player doesnt move when i press any keys did i do something wrong
@reps2564
@reps2564 11 ай бұрын
did you fix it?
@madmajima33
@madmajima33 10 ай бұрын
@@reps2564 no i gave up especially since my uni switched to unreal engine sorry i cant provided tips
@henryxXfun_timesXx
@henryxXfun_timesXx 10 ай бұрын
@@reps2564 If you are still working on it change ("vertical") in visual studio code to ("Vertical") also make sure you go to (in the unity editor) edit => project settings => input manager => axes => vertical, and make sure that is is defined as Vertical and also that your "w" and "s" keys are binded hope this helps
@nox_208
@nox_208 9 ай бұрын
@@reps2564 try writing the code again fixed for me
@ryanatkinson3961
@ryanatkinson3961 Жыл бұрын
Is their a way of implementing a while loop to this so that it ends after the players or the AIs score reaches a certain number. And if there is could I have help with it please as I'm not sure how while loops work in unity. Thankyou in advance.
@chumleechumbucket6625
@chumleechumbucket6625 Жыл бұрын
you could put in if statements when it increases the score (more efficient than loops) and if the player/ai score is over a certain number you can run SceneManager.LoadScene(x); with x being the "name" or scene number. To use this, you'll have to state 'using UnityEngine.SceneManagement;' at the top. Then make 2 new scenes, one with some text saying you won and the other saying you lost, and maybe a replay button. I'm late to this and new to coding so you probably figured out something better already lol
@bigde8538
@bigde8538 9 ай бұрын
its not even letting me import the files (sfm all over again)
@anfrollex
@anfrollex Жыл бұрын
I'm blind like a mole, why didn't you make the code's font bigger 😑 But thank you tho, I'd been searching for this part with the ball going any direction depending on the angle!
@MrBooBooOfficial
@MrBooBooOfficial Жыл бұрын
What's the background music?
@mrbruh2460
@mrbruh2460 Жыл бұрын
otherside from minecraft
@ClassicBee17
@ClassicBee17 9 ай бұрын
Why can I not move my paddle at all?
@chasehicks6520
@chasehicks6520 8 ай бұрын
make sure vertical is capitalized "Vertical"
@eduardovarela4176
@eduardovarela4176 Жыл бұрын
the ball does not bounce, I have everything the same
@SPACESOFT_GAMES
@SPACESOFT_GAMES Жыл бұрын
Add physics material in ball's collider
@icydreaded1717
@icydreaded1717 Жыл бұрын
@@SPACESOFT_GAMES thnx this was really helpful
@Isaac096
@Isaac096 Жыл бұрын
It is not doing the scoring part it just bounces off of it
@chumleechumbucket6625
@chumleechumbucket6625 Жыл бұрын
if it's bouncing off the sides, it means that the 'startball' function isn't even triggering. It might be because you used onCollisionEnter instead of onCollision2D, or you might've messed up setting the triggers themselves. if you're talking about the paddles they're changing the speed not the score. vague question tho
@Isaac096
@Isaac096 Жыл бұрын
@@chumleechumbucket6625 ya sorry it is speeding up by the paddles but when it hits the walls behind the paddles it does not change the score or reset
@chumleechumbucket6625
@chumleechumbucket6625 Жыл бұрын
@@Isaac096 in that case it either means you didn't set up the triggers or the ontriggerenter function properly. Double check that they're both set to 2D, that can be an issue
@Isaac096
@Isaac096 Жыл бұрын
@@chumleechumbucket6625 ok thanks I will try to see if that works later
@Plebzzz
@Plebzzz Жыл бұрын
Hey, for some reason the "AI" Moves when I do, what did i get wrong here?
@jaylicious4694
@jaylicious4694 Жыл бұрын
I had the same problem, I had to change the gameobject in player controler script to none and leave it only for the AI and then it worked
@KurooNegai
@KurooNegai Жыл бұрын
Bro why? Tutotial is good but I can't see any codes? they are very smaii
@chumleechumbucket6625
@chumleechumbucket6625 Жыл бұрын
fullscreen and squinting helps but my eyes hurt now
@LeeKatsuOfficial
@LeeKatsuOfficial 3 ай бұрын
4:27
@mikeygaming1233
@mikeygaming1233 Жыл бұрын
hi
@ivanobosnjak2134
@ivanobosnjak2134 Жыл бұрын
really bad tutorial. you're going too fast and dont explain half of the things...
@2010platinumstar
@2010platinumstar 11 ай бұрын
This was pretty easy to follow for me. You can rewind if you miss something.
@ivanobosnjak2134
@ivanobosnjak2134 11 ай бұрын
@@2010platinumstar At the time, I didn't really understand C#, because I thought I don't really need much knowledge about it because C# and Unity's C# are somewhat different. From then I've finished with learning C#, but I gave up on Unity because of the newest update. So, I would say that my lack of understanding C# did a pretty big part in not knowing what to do, but I can't really say he did a great job on this video.
@s1xpackch1ck
@s1xpackch1ck Жыл бұрын
For some reason whenever I add a collider to my background it ruins the ball movement, but then ball movement is normal without a collider on the background, I don't know what is happening with the interaction between the two
@jaidinwynn6584
@jaidinwynn6584 6 ай бұрын
My ball wont start and I’m not exactly sure why. I have no error in my code but it just won’t work
@Factland_
@Factland_ 4 ай бұрын
Make sure u wrote the function name correctly
Unity For Total BEGINNERS - Make Pong in 10 Minutes!
10:01
bananadev2
Рет қаралды 3,8 М.
The Unity Tutorial For Complete Beginners
46:39
Game Maker's Toolkit
Рет қаралды 3,7 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 23 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 25 МЛН
Make Your Own Raycaster Part 1
16:52
3DSage
Рет қаралды 431 М.
BU VİDEOYU İZLEDİKTEN SONRA OYUN YAPABİLECEKSİN!
43:20
at0m
Рет қаралды 1,4 МЛН
How to make Pong in Unity (Complete Tutorial) 🏓💥
1:19:27
Zigurous
Рет қаралды 125 М.
Breakout | Simple Game Tutorial Unity 2D for Beginners
26:22
SilverlyBee
Рет қаралды 29 М.
Better Jumping in Unity With Four Lines of Code
12:47
Board To Bits Games
Рет қаралды 823 М.
TOP DOWN SHOOTING in Unity
19:52
Brackeys
Рет қаралды 866 М.
I Build Your DUMB Redstone Ideas
14:52
Purplers
Рет қаралды 256 М.
How to make The Best First Person Camera in Unity
9:04
semikoder
Рет қаралды 15 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 5 МЛН
"Hello, World" in 5 CURSED languages that no one should use
13:08
Dreams of Code
Рет қаралды 547 М.