How To Make A GLOWING PONG Game For Beginners - Easy Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 115

  • @siddharthsendhil6753
    @siddharthsendhil6753 3 года назад +11

    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

  • @worstDevYT
    @worstDevYT Год назад +1

    This is the best pong tutorial i've ever seen. Thank you so much for this!

  • @xanaxist
    @xanaxist Год назад

    the most easy to understand, comprehensive tutorial for Unity!!!
    thanks man!!!

  • @jarirabbas3281
    @jarirabbas3281 3 года назад +2

    Woo bro last time when I checked you only had 200 subs but now 2.5k epic broo

  • @hosseinghanbari3397
    @hosseinghanbari3397 Год назад +2

    Hi.bro i do not have function MoveToScene in 6:58 video

  • @Lx_Zander
    @Lx_Zander Год назад +3

    Great video, we need more tutorials like this!

  • @shammaalyaqoob8662
    @shammaalyaqoob8662 Год назад

    Thank you soo much for this amazing tutorial! I felt like I learned alot from this tutorial

  • @kingofthegarden9544
    @kingofthegarden9544 Год назад +1

    I need help with the MovetoScene Function, it’s not showing up 6:58

  • @canaldofetrentin
    @canaldofetrentin Год назад +2

    took me 5 hours to finish this tutorial but I did

  • @jaybeebansig102
    @jaybeebansig102 Месяц назад

    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?

  • @underratedmind
    @underratedmind Год назад +1

    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

  • @hxr8147
    @hxr8147 2 года назад +1

    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

    • @ValoRaja
      @ValoRaja 8 месяцев назад

      Same problem...did u find any solution for that?

    • @jaybeebansig102
      @jaybeebansig102 Месяц назад

      Same issue, how to attach it?

  • @rodrigoa8577
    @rodrigoa8577 Год назад +2

    ah que vídeo perfeito, era exatamente o que eu queria. que cara bom.

  • @arhamjamil6625
    @arhamjamil6625 3 года назад +1

    That's So Good I Was Having Few Conceptions But You Killed em all 😣💓

  • @monkeygames2019
    @monkeygames2019 3 года назад

    Thanks for the tutorial! Great to see you back!

  • @emmetthomasmemesandgames
    @emmetthomasmemesandgames Год назад +1

    My P2 controls are not working. My editor version is 2022.1.23f1

  • @paulembleton1733
    @paulembleton1733 3 месяца назад

    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. 🙄

  • @TrixArmy
    @TrixArmy 3 года назад

    NGL this is the best video ever : )

  • @carrimccarthy9984
    @carrimccarthy9984 Год назад +1

    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

    • @ValoRaja
      @ValoRaja 8 месяцев назад

      Same problem!! U got the problem fixed?

  • @MDRony-qr8zn
    @MDRony-qr8zn 2 года назад

    your bestttttt. your are the boss. i am waiting for your next projects

  • @ongchum369
    @ongchum369 5 месяцев назад +1

    Help
    Why can only player 1 score points while player 2 cannot score and the ball is quickly returned ?

  • @bakobaxtiar2016
    @bakobaxtiar2016 2 года назад

    thaaaank you I'm going to remake it to my final project of game programming course

  • @aikgame5874
    @aikgame5874 3 года назад

    i was w8ing for new video , thank you great job

  • @shannitsah6997
    @shannitsah6997 3 года назад +1

    Thank you for this tutorial

  • @maxzlochevsky
    @maxzlochevsky 2 года назад +1

    Thank you this helped a lot!

  • @masterofgaming71BH4
    @masterofgaming71BH4 Год назад +1

    there is an error shwoing "no rigid body attached to the gameobject and the script is trying to access it"

  • @devidsatria1939
    @devidsatria1939 2 года назад +1

    ArgumentException: Input Button Cancel is not setup. plssss help me i stck in here

    • @DLXXXI
      @DLXXXI 2 года назад

      I have the same problem

    • @radayan2431
      @radayan2431 Год назад

      same lol

    • @radayan2431
      @radayan2431 Год назад

      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.

  • @daddymccarthy
    @daddymccarthy 2 года назад

    Awesome vid! Made it to the end!

  • @Tekuburu09
    @Tekuburu09 2 года назад +1

    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

  • @samplays675
    @samplays675 2 дня назад

    can i add this game to my portfolio

  • @xzfert8692
    @xzfert8692 Год назад +1

    How do i do “tree”

  • @TrixArmy
    @TrixArmy 3 года назад +1

    Loving ur content U are amazing teacher

  • @twosteps-paoloprazzoli
    @twosteps-paoloprazzoli 2 года назад +1

    Fantastic tutorial! Thx!! 😃

  • @mariawaheeb3639
    @mariawaheeb3639 Год назад

    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 ?

    • @radayan2431
      @radayan2431 Год назад

      same , did you find any solution ?

    • @danielyue6855
      @danielyue6855 Год назад

      same

    • @danielyue6855
      @danielyue6855 Год назад

      ohhhh instead of creating text mesh pro, go under legacy and there should be the regular text option

  • @thisisntchris0997
    @thisisntchris0997 Год назад

    Which version of VS Code did you use

  • @Rahul-vw1vx
    @Rahul-vw1vx 10 месяцев назад

    i cant able to import assets from files what should i do?

  • @morganovens7361
    @morganovens7361 2 года назад +1

    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?

    • @ufzero0080
      @ufzero0080 2 года назад

      Idk bro but I got an error on .text function

    • @ufzero0080
      @ufzero0080 2 года назад +1

      I think it has a difference

    • @soker5
      @soker5 2 года назад +11

      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();
      }

      }

    • @morganovens7361
      @morganovens7361 2 года назад

      thanks a lot !

    • @FLNoam
      @FLNoam Год назад +1

      @@soker5 Thanks man!

  • @Hamzoo123
    @Hamzoo123 11 дней назад

    Thanks you sir

  • @cleve3731
    @cleve3731 2 года назад

    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!

    • @Mzeyt
      @Mzeyt Год назад

      did you manage to fix this?

  • @saadshaikh7494
    @saadshaikh7494 Год назад

    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?

  • @Naz.alıs
    @Naz.alıs 2 года назад

    Hi 7.04 there is no move to scene section how can aldı that

    • @Mzeyt
      @Mzeyt Год назад

      did u manage to fix this?

  • @dominicburke6697
    @dominicburke6697 2 года назад

    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?

  • @yodriftyy5147
    @yodriftyy5147 2 года назад +1

    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;
    }
    }

  • @Wanernw
    @Wanernw 2 месяца назад

    can someone send the script for ballbounce and score Manager

  • @CataldoStrangi
    @CataldoStrangi 2 года назад

    it is not letting me download the assets folder

  • @amandalesley2375
    @amandalesley2375 2 года назад +3

    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????

    • @Oldtobykenobi
      @Oldtobykenobi 2 года назад

      @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.

    • @devidsatria1939
      @devidsatria1939 2 года назад

      @Kavindu Pabasara Geeganage bro help me pls
      ArgumentException: Input Button Cancel is not setup. i stck in here

    • @PulkitMalhotra
      @PulkitMalhotra 2 года назад +1

      @Kavindu Pabasara Geeganage thanks
      i have written onCollisionEnter2D
      instead of OnCollisionEnter2D
      (it takes 1 hr. to figure it out)

  • @chermainehoo214
    @chermainehoo214 3 года назад +1

    Nailed it 👍🏻✨

  • @randomot5113
    @randomot5113 2 года назад

    Hello man, nice tutorial. Can please also make a video on making a shop and in app purchase In this same game plsssss

  • @Dzung909
    @Dzung909 Год назад

    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?

  • @jasondeme5754
    @jasondeme5754 Год назад

    Perfect video👍

  • @UJJWAL-d2i
    @UJJWAL-d2i 2 года назад +1

    This game is very nice

  • @stoned_pandaa_gamingyt652
    @stoned_pandaa_gamingyt652 2 года назад +1

    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 .

    • @tanmaypatel28
      @tanmaypatel28 Год назад

      same problem here also did it solved for u ?

  • @newunitylearner6183
    @newunitylearner6183 2 года назад

    Really good, thanx! =)

  • @hosseinghanbari3397
    @hosseinghanbari3397 Год назад

    How to add that function?

  • @tanishkjoshi25
    @tanishkjoshi25 2 года назад

    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

  • @asifameerr
    @asifameerr Год назад

    great video

  • @thisisntchris0997
    @thisisntchris0997 Год назад

    Bruh, smh I'm stuck at the VS code part, is my VS code outdated or smthin?

  • @xXQuatzXx
    @xXQuatzXx Год назад +2

    bro pong games is bored but 🎉A GLOWİNG PONG🎉 is not boring

    • @yahyamohammed9325
      @yahyamohammed9325 Год назад

      _You have been arrested by the grammar police due to using the verb instead of an adjective in the first line._

    • @yahyamohammed9325
      @yahyamohammed9325 Год назад

      Jk but ikr

  • @Dronzer_IG
    @Dronzer_IG 2 года назад

    Pls make a video for another game in unity 2d ......ur video is in very detailed..........pls .... waiting for the video

  • @otakusenpai69420
    @otakusenpai69420 2 года назад +1

    hey man can u plz upload another video converting same game into mobile game😉

  • @dudugeorge653
    @dudugeorge653 2 года назад

    Can anyone help me make this but with an AI instead of 2 players? please I really need this

    • @dudugeorge653
      @dudugeorge653 2 года назад

      I just need the AI script not the whole thing.

    • @MinoritasBoy
      @MinoritasBoy Год назад

      @@dudugeorge653 hello sir,are you done with it?, im currently need this too if u dont mind to give it to me :D

  • @bangbatik2282
    @bangbatik2282 Год назад

    broh do you have github?

  • @nicha2492
    @nicha2492 2 года назад

    Wow I like it

  • @pakhand44465
    @pakhand44465 9 месяцев назад

    goood work

  • @DivyamThakur-q1m
    @DivyamThakur-q1m Год назад

    Please Give me the source code

  • @salmanjan1427
    @salmanjan1427 2 года назад

    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?

  • @mikeygaming1233
    @mikeygaming1233 2 года назад

    its Error why

  • @nethrace7284
    @nethrace7284 3 года назад

    keep going

  • @Xastias
    @Xastias Год назад

    Que complicado es entender todo🤯

  • @abg2487
    @abg2487 2 года назад +1

    Is watching and doing unity tutorials is good or not?

  • @PulkitMalhotra
    @PulkitMalhotra 2 года назад

    Ball doesn't bounce correctly

  • @xzfert8692
    @xzfert8692 Год назад +1

    Number tree

  • @Naz.alıs
    @Naz.alıs 2 года назад

    Plase help

  • @patrickleanoleano4302
    @patrickleanoleano4302 3 года назад

    You deleted Bot Attack? Sad

  • @xzfert8692
    @xzfert8692 Год назад +1

    Tree

  • @xzfert8692
    @xzfert8692 Год назад

    Face reveal

  • @xzfert8692
    @xzfert8692 Год назад +1

    U are making me mad u tree

  • @PickledIce
    @PickledIce Год назад

    This does not work

  • @DivyamThakur-q1m
    @DivyamThakur-q1m Год назад +1

    Please Give me the source code

    • @bidoaymannabil9828
      @bidoaymannabil9828 Год назад

      do you still want it ? if yes send me your discord

    • @bidoaymannabil9828
      @bidoaymannabil9828 Год назад

      do you still want it ? if yes send me your discord

    • @ValoRaja
      @ValoRaja 8 месяцев назад

      ​@@bidoaymannabil9828 u have the source code man? If yes reply !!