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
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
0:35 ball gets stuck to the boundary. This is happening in my implementation - part of the reason I’m here. Spent ages trying to figure what I’d done wrong, and eventually decided to it’s a feature. 🙄
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
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.
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 ?
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?
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(); }
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!
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?
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?
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.
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?
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 .
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
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!
the most easy to understand, comprehensive tutorial for Unity!!!
thanks man!!!
Woo bro last time when I checked you only had 200 subs but now 2.5k epic broo
Hi.bro i do not have function MoveToScene in 6:58 video
Great video, we need more tutorials like this!
Thank you soo much for this amazing tutorial! I felt like I learned alot from this tutorial
I need help with the MovetoScene Function, it’s not showing up 6:58
took me 5 hours to finish this tutorial but I did
40:46 I can't assign the player 1 and 2 score objects bro, every time I drag the object a prohibited sign appears, please how to solve it?
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?
Same issue, how to attach it?
ah que vídeo perfeito, era exatamente o que eu queria. que cara bom.
That's So Good I Was Having Few Conceptions But You Killed em all 😣💓
Thanks for the tutorial! Great to see you back!
My P2 controls are not working. My editor version is 2022.1.23f1
0:35 ball gets stuck to the boundary. This is happening in my implementation - part of the reason I’m here. Spent ages trying to figure what I’d done wrong, and eventually decided to it’s a feature. 🙄
NGL this is the best video ever : )
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?
your bestttttt. your are the boss. i am waiting for your next projects
Help
Why can only player 1 score points while player 2 cannot score and the ball is quickly returned ?
thaaaank you I'm going to remake it to my final project of game programming course
i was w8ing for new video , thank you great job
Thank you for this tutorial
Thank you this helped a lot!
there is an error shwoing "no rigid body attached to the gameobject and the script is trying to access it"
same
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.
Awesome vid! Made it to the end!
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
can i add this game to my portfolio
How do i do “tree”
Loving ur content U are amazing teacher
Fantastic tutorial! Thx!! 😃
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
Which version of VS Code did you use
i cant able to import assets from files what should i do?
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!
Thanks you sir
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?
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?
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?
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
can someone send the script for ballbounce and score Manager
it is not letting me download the assets folder
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)
Nailed it 👍🏻✨
Hello man, nice tutorial. Can please also make a video on making a shop and in app purchase In this same game plsssss
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?
Perfect video👍
This game is very nice
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 ?
Really good, thanx! =)
How to add that function?
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
great video
Bruh, smh I'm stuck at the VS code part, is my VS code outdated or smthin?
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
Pls make a video for another game in unity 2d ......ur video is in very detailed..........pls .... waiting for the video
hey man can u plz upload another video converting same game into mobile game😉
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
broh do you have github?
Wow I like it
goood work
Please Give me the source code
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?
its Error why
keep going
Que complicado es entender todo🤯
Is watching and doing unity tutorials is good or not?
Ball doesn't bounce correctly
Number tree
Plase help
You deleted Bot Attack? Sad
Tree
Face reveal
U are making me mad u tree
This does not work
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 !!