How To Make A GLOWING PONG Game For Beginners - Easy Unity Tutorial
HTML-код
- Опубликовано: 5 авг 2024
- In this unity tutorial, you'll learn how to make a Glowing Pong Game from start to finish. If you're just a beginner and you want to make your first game using unity game engine, this is the tutorial for you.
You'll learn how to make a simple racket controller, ball movement and bounce, scoring system, background music, sound effect and use post processing to add the glowing effect.
After you've finished developing the game, you can ask your family and friends to try it out. Impress them and get feedbacks so that you can improve as a game developer.
➤Game Assets: drive.google.com/file/d/1wdeb...
Timestamps:
0:00 Intro
0:50 Game Project Creation
1:06 Game Project Configuration
1:32 Import Game Assets
2:00 Main Menu Setup
5:01 Changing Scene
8:43 Pong Game Setup
13:24 Ball Movement And Bounce
17:13 Ball Left Right Movement
24:06 Racket Movement
31:48 Ball Bouncing Correctly
35:51 Scoring System
41:43 Restart Ball
44:28 Game Over
49:19 Background Music
51:01 Sound Effect
54:17 Post Processing
57:22 Building Game
#Hooson #Unity3D
Play my first mobile game: Bot Attack - 2D Top-down shooter
➤Google Play: play.google.com/store/apps/de...
➤App Store: Coming soon
➤Follow my Instagram: / hoosontech Хобби
Love the content man, please don't stop making videos you are just an amazing teacher. The way u teach is just fantastic keep up the good work
This is the best pong tutorial i've ever seen. Thank you so much for this!
Thanks for the tutorial! Great to see you back!
That's So Good I Was Having Few Conceptions But You Killed em all 😣💓
the most easy to understand, comprehensive tutorial for Unity!!!
thanks man!!!
Great video, we need more tutorials like this!
NGL this is the best video ever : )
i was w8ing for new video , thank you great job
Thank you soo much for this amazing tutorial! I felt like I learned alot from this tutorial
Awesome vid! Made it to the end!
Woo bro last time when I checked you only had 200 subs but now 2.5k epic broo
Fantastic tutorial! Thx!! 😃
Thank you this helped a lot!
Nailed it 👍🏻✨
Thank you for this tutorial
your bestttttt. your are the boss. i am waiting for your next projects
Loving ur content U are amazing teacher
Really good, thanx! =)
thaaaank you I'm going to remake it to my final project of game programming course
Perfect video👍
great video
ah que vídeo perfeito, era exatamente o que eu queria. que cara bom.
Wow I like it
took me 5 hours to finish this tutorial but I did
Hi bro, I just want to tell you that you can just drag the sprite onto the scene, It is so much easier than doing it manually
goood work
Hello man, nice tutorial. Can please also make a video on making a shop and in app purchase In this same game plsssss
keep going
Help
Why can only player 1 score points while player 2 cannot score and the ball is quickly returned ?
I cant see the start speed, extra speed and the max extra speed under my script component when I add it to the ball at 22.20 into the vid. Can anyone please help me?
This game is very nice
cool
Great tutorial and I was able to get everything to work EXCEPT the SCORE!! Can anyone help? I have double checked the code and set up. I have to be missing something so small, yet so important. Thx
Same problem!! U got the problem fixed?
My P2 controls are not working. My editor version is 2022.1.23f1
I need help with the MovetoScene Function, it’s not showing up 6:58
Hi.bro i do not have function MoveToScene in 6:58 video
Which version of VS Code did you use
How do i do “tree”
How to add that function?
it is not letting me download the assets folder
Pls make a video for another game in unity 2d ......ur video is in very detailed..........pls .... waiting for the video
i cant able to import assets from files what should i do?
hey man can u plz upload another video converting same game into mobile game😉
hello thanks for this wonderful video wish you all the best
so i have an error its scoring from only 1 player and i used text mesh as i dont have text only so any advice ?
same , did you find any solution ?
same
ohhhh instead of creating text mesh pro, go under legacy and there should be the regular text option
Hey Guys I need help!!
The Hit Sound Effect (Prefab) Sound Logo also appears in the game just like in Minute 53:00 in the editor scene.
What do I have to do to eliminate this.
Thanks
Can someone help me ?❤😢
40:50 I cannot attach player1 score to the score manager, it doesn't do anything, just cursor with a cross symbol shows up and The moving process is not done
Same problem...did u find any solution for that?
When i want to add functions to the play or quit button there is no ChangeScene.quit functions to choose from. I know this issue is related to updated of unity ? Please assist in my game development journey!
did you manage to fix this?
there is an error shwoing "no rigid body attached to the gameobject and the script is trying to access it"
same
Is there a difference between using Text and Text Mesh Pro? My player scores were only recognized as Game Objects and not as Text so I couldn't drag them into the Score Manager script in Borders. Any Recommendations?
Idk bro but I got an error on .text function
I think it has a difference
Use this in your ScoreManager.cs:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class ScoreManager : MonoBehaviour
{
private int player1Score = 0;
private int player2Score = 0;
public TextMeshProUGUI scoreP1;
public TextMeshProUGUI scoreP2;
public void Player1Goal()
{
player1Score++;
scoreP1.text = player1Score.ToString();
}
public void Player2Goal()
{
player2Score++;
scoreP2.text = player2Score.ToString();
}
}
thanks a lot !
@@soker5 Thanks man!
guys i have an error in p1 script my racket is automatically moving in downward direction slowing without any control on it
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player3 : MonoBehaviour
{
public float racketSpeed;
private Rigidbody2D rb;
private Vector2 racketDirection;
void Start()
{
rb = GetComponent();
}
// Update is called once per frame
void Update()
{
float directionY = Input.GetAxisRaw("Vertical");
racketDirection = new Vector2(0, directionY).normalized;
}
public void FixedUpdate()
{
rb.velocity = racketDirection * racketSpeed;
}
}
What to do?
Did you solve the problem?
Hi 7.04 there is no move to scene section how can aldı that
did u manage to fix this?
Very Great video!
the Bloom effect is not working, I've followed you all along but it is still not working ;(
can u tell the fix?
please can someone help ive got an error CS1002 (expected ; (26,15))
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BallMovement : MonoBehaviour
{
public float startSpeed;
public float extraSpeed;
public float maxExtraSpeed;
private int hitCount = 0;
private Rigidbody2D rb;
void Start()
{
rb = GetComponent();
StartCoroutine(Launch());
}
public IEnumerator Launch()
{
hitCounter = 0;
yeild return new WaitForSeconds(1);
MoveBall(new Vector2(-1, 0));
}
public void MoveBall(Vector2 direction)
{
direction = direction.normalised;
float ballSpeed = startSpeed + hitCount * extraSpeed;
rb.velocity = direction * ballSpeed;
}
}
direction.normalized
Its hitCounter not hitCount
bro pong games is bored but 🎉A GLOWİNG PONG🎉 is not boring
_You have been arrested by the grammar police due to using the verb instead of an adjective in the first line._
Jk but ikr
Severity Code Description Project File Line Suppression State
Error CS0161 'BallMovement.Launch()': not all code paths return a value Assembly-CSharp
I faced this error
me too
ArgumentException: Input Button Cancel is not setup. plssss help me i stck in here
I have the same problem
same lol
i find a solution this it it :
You must have deleted the Cancel axis in your Input Manager 4. This is creating an error because you have something in your scene which requires the Cancel axis (most likely a Canvas and Event Manager). Here’s how to fix it:
Go to Input Manager (Edit->Project Settings->Input)
Increase the Size by one
Set the Name to “Cancel” (without the quotes)
Set the Positive Button to “escape” (no quotes) or something similar
That’s it! Now, you’ll likely find that you’ll have to do this several times for all the axes that are getting errors. If it’s easier, you can reset the Input Manager back to its default state by using the gear icon in the top right corner. Keep in mind this will delete any custom axes you’ve set up.
Bruh, smh I'm stuck at the VS code part, is my VS code outdated or smthin?
its Error why
broh do you have github?
Please Give me the source code
Hey hooson in ball bounce script my ball is moving in same direction but i done code everything correct ..but ball moving in same direction only ..when ball touches the racket i will moving in same direction..please give me a solution as soon as .
same problem here also did it solved for u ?
Ball doesn't bounce correctly
Can anyone help me make this but with an AI instead of 2 players? please I really need this
I just need the AI script not the whole thing.
@@dudugeorge653 hello sir,are you done with it?, im currently need this too if u dont mind to give it to me :D
hey there, really nice video though, however i am having problems with my ball bounce. the ball does not bounce downwards when it hits the lower part of the paddle, and it does not bounce upwards when it hits the upwards part of the paddle, it only bounces directly upwards and downwards when it hits the top or bottom of the racket/paddle, and it bounces off at a high speed, sometimes too fast to control..(the bounce correctly scene).. pls can you help me out with this?? i input the code correctly and after saving the on visual studio, i got no code error so i am pretty sure its not the code.. please can you help me out with this????
@Kavindu Pabasara Geeganage thanks for this! I'm not sure what I was missing but it clearly must have been a capitalization issue somewhere. I looked over my code multiple times but this fixed it.
@Kavindu Pabasara Geeganage bro help me pls
ArgumentException: Input Button Cancel is not setup. i stck in here
@Kavindu Pabasara Geeganage thanks
i have written onCollisionEnter2D
instead of OnCollisionEnter2D
(it takes 1 hr. to figure it out)
Que complicado es entender todo🤯
Plase help
Number tree
You deleted Bot Attack? Sad
Is watching and doing unity tutorials is good or not?
Tree
Face reveal
U are making me mad u tree
This does not work
i dont understand at 34:46 why positionY = (ballPosition.y - racketPosition.y) / rakcketHeight
How do you know to use this formula and not any other formula?
Please Give me the source code
do you still want it ? if yes send me your discord
do you still want it ? if yes send me your discord
@@bidoaymannabil9828 u have the source code man? If yes reply !!