Breakout | Simple Game Tutorial Unity 2D for Beginners

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 82

  • @SilverlyBee
    @SilverlyBee  2 роки тому +21

    Hey guys! I tried a more fast paced approach to this tutorial (even with it being a beginner tutorial). Do you guys prefer it more dynamic like this or slowed down a bit? Also do you prefer the zoom ins on the screen or no zooming in at all?

    • @thebestcelep6358
      @thebestcelep6358 2 роки тому +5

      I paused more then I would .I think you can slow down a bit but you did a great tutorial I will post my game to the comments as soon as I upload it to github and btw thank you I learned a lot

    • @kellybmackenzie
      @kellybmackenzie Рік тому

      I like the fast pace personally, it was really nice :3 It genuinely felt pleasant to watch, especially the scripting parts!!

    • @fitriadesiyani8403
      @fitriadesiyani8403 Рік тому

      Do you have this scripts?

    • @OverlustRift
      @OverlustRift Рік тому

      Hello, I have a question, I want to do a project and I need your help.

    • @Mmab_x6699
      @Mmab_x6699 Рік тому +1

      When are we gonna get more content of yours? :3

  • @mpomp6378
    @mpomp6378 Рік тому +3

    Using the shape to control the bounce direction is genius.

  • @Porter_John
    @Porter_John 5 місяців тому

    Hi! I wanted to say thank you! I'm trying to learn this with zero previous experience, and I really appreciate how you explain why you are adding which code instead of just saying "Add this Code". Great tutorial!

  • @hambone5538
    @hambone5538 Рік тому +16

    Complete beginner here lol - but I was having trouble finding the Restart function on the Button after adding the LevelGenerator, I realised it was bc the restart function wasn’t public, just had to make it “ public void Restart(); “ and then it showed up

    • @pontlegs9652
      @pontlegs9652 7 місяців тому

      You are a saint

    • @Krannkheit
      @Krannkheit 5 місяців тому

      Thank you chad

    • @CrypticKoopa
      @CrypticKoopa 3 місяці тому

      I'm a complete beginner too, I was just following along as I went. I had the exact same problem! Thank you for finding the solution

  • @alimoammeri9483
    @alimoammeri9483 Рік тому +4

    Great content, I didn't know about edge colliders and gradients. I learned a lot, thank you!

  • @AtNovember
    @AtNovember 10 місяців тому

    Awesome video! After your tutorial I could create my first game. My game is simple and primitive, but it's mine!!!
    Thank you!! I'm sooo happy!!!

  • @sentelion-n-n-n7728
    @sentelion-n-n-n7728 9 днів тому

    very grateful for such a wonderful guide

  • @isabelien4721
    @isabelien4721 3 місяці тому +1

    Thanks. I really learned new stuffs with your video.

  • @ChrisUnlimitedGames
    @ChrisUnlimitedGames 2 місяці тому

    Good tutorial. Im having a bit of trouble getting my colider to stay on my paddle, but im sure its something ive done. I will keep working with it.

  • @dynamicvoltage9765
    @dynamicvoltage9765 Рік тому +3

    This is a good tutorial, but I should warn people that you shouldn't rely on a physics material to bounce the ball accurately. It will be ok as long as you have the blocks spaced out like in this video, but if your ball can touch 2 blocks at the same time, usually the bounce result will be wrong. It will tend to bounce off in a straight direction because Unity tries to calculate both angles at once.
    The best way is to use reflect to change the velocity based on the first contact point, and ignore all others. Again, you only really need to do this as long as it's impossible for your ball to hit more than 1 object at a time.

    • @TheAlpha0014
      @TheAlpha0014 8 місяців тому

      Could you elaborate on how to do this with code? I can’t figure out how to obtain the distance from center the ball hits the paddle, and the angle at which the collision happens.

  • @yuezhou8265
    @yuezhou8265 2 роки тому +4

    Thank you for making this tutorial! I learned a lot from you!

  • @Deathmask-id2bh
    @Deathmask-id2bh 2 роки тому +2

    Missed u!!! U have the best tutorials of unity.

  • @vegasdealer777
    @vegasdealer777 Місяць тому

    Excellent teaching video. All GOOD!

  • @kaolin97
    @kaolin97 2 роки тому +2

    Hey! I've been following some of tutorials, keep up the great work :]

  • @rubellite5766
    @rubellite5766 8 місяців тому

    Yo really found the gradient usage amazing, would implement it in my games

  • @YggdrasSoftGaming
    @YggdrasSoftGaming Рік тому

    Easier check for the "is out of bounds" for the paddle would be if(Mathf.Abs(movementHorizontal) > 0 && Mathf.Abs(transform.position.x + movementHorizontal) < maxX)

  • @mangineer_rl
    @mangineer_rl День тому

    YEAH THANKS, I just experienced Atari Breakout-Scope Creep😅😂

  • @AtNovember
    @AtNovember 11 місяців тому

    Cool video! Thanks for explanation! It was a good project for me to start!!!

  • @saif-1420
    @saif-1420 Рік тому

    Thank you very muchhh everything is perfect btw check your codes always if it doesnt work it cuz you did a mistake, btw the restart wont apper you should type publice Void Restart()

  • @viniciusnobrega1163
    @viniciusnobrega1163 2 роки тому +3

    Great video, like from Brasil!

  • @christianmunkedal9063
    @christianmunkedal9063 Рік тому +3

    hi loved the video.
    I was trying to follow along the video but when i came to the select button Restart funktion it didn't show up anywhere. everything else works fine tho.

    • @suetyingliu2044
      @suetyingliu2044 Рік тому +3

      Me too, and my partner found a solution abt this, you just need to add public before void: public void Restart()

    • @christianmunkedal9063
      @christianmunkedal9063 Рік тому

      ty so much

  • @Dam-Dd
    @Dam-Dd Рік тому +1

    congo for 2k yooooo also when you gonna upload new video ??????????????

  • @pockygaming__1773
    @pockygaming__1773 9 місяців тому +1

    Would really like to know how you made the gradients change...

  • @rootbindev
    @rootbindev Рік тому

    Nice tutorial, well done!

  • @Lapin241
    @Lapin241 8 місяців тому

    Great video! I like your work

  • @Motyy
    @Motyy Рік тому

    Really nice tutorial, good explained and pleasent voice

  • @diptikhanna
    @diptikhanna 7 місяців тому +1

    Thanks

  • @chrismaritz3866
    @chrismaritz3866 11 місяців тому +1

    hi, beginner here,
    my Visual Studio Code doesn't recognise certain terms e.g. Input, Vector3, etc. in the player movement script ... i must be missing autocomplete or maybe some add-on or something,
    please can you advise,
    thanks

  • @huypg13
    @huypg13 10 місяців тому +1

    when the first brick disappeared and immediately the youwin panel appeared. help me fix it

  • @ignacia3008
    @ignacia3008 Рік тому +1

    I loved the tutorial!
    But since I made the script for the bouncy ball and I try to play, unity won't stop telling me this "All compiler errors have to be fixed before you can enter playmode"
    And I followed the codes to the letter :(

  • @B4uneed
    @B4uneed Рік тому +1

    Hey!
    can you make more tutorials ? :)

  • @mrs.okeeffe6171
    @mrs.okeeffe6171 Рік тому +1

    For some reason the YouWinPanel comes on as soon as the paddle moves - have checked the scripts everything is good. I take out the youwinpanel portion and the game works great - and yes I checked that the youwinpanel is not checked in Unity.- any ideas?

    • @huypg13
      @huypg13 10 місяців тому

      @mrs.okeeff6171 I encountered the same thing when the first brick disappeared and immediately the youwin panel appeared. help me fix it

  • @ThetruthHere12
    @ThetruthHere12 10 місяців тому

    Hi , i don't understand two things ,when you create the movement for the paddel , why you put an vector 3 ? it's not a game in 2d? et why you multiplied by .right ? thanks for all

  • @marcellodelfiore1361
    @marcellodelfiore1361 Рік тому

    thank you so much appreciate your content :D

  • @ElHooperino
    @ElHooperino 18 днів тому

    So I was following this and got to a point where I was adding the restart function to play again but it doesn't show me the restart function :/
    I'm not sure what could be the issue

    • @arcaderock24
      @arcaderock24 3 дні тому

      Is ur restart function set to public?

    • @ElHooperino
      @ElHooperino 3 дні тому

      ​​@@arcaderock24I eventually got it to work. I'm trying to remember what it was but I'm pretty sure I forgot to add using scene manager at the top

  • @samuelparrott8558
    @samuelparrott8558 6 місяців тому

    I can't seem to get the on click to work for either the game over or the win page

  • @andresugalde916
    @andresugalde916 Рік тому +1

    17:14 I got to this point, for some reason my program freezes when I try to play the game, any way to fix this?

    • @phamhao2959
      @phamhao2959 Рік тому +1

      This is the late answer but i hope it will be helpful others. For some reason, even after setting Time.timeScale = 1 in the restart function, it remains at 0 after loading the scene. To solve this issue, try setting Time.timeScale = 1 in the Awake or Start functions.

  • @student2318
    @student2318 Рік тому

    Hey, I tried to change the circle with some another ball image, but then the edge collider of right and top side are not working, can you suggest any changes please.

  • @AmitojSingh-tf9ex
    @AmitojSingh-tf9ex 6 місяців тому

    mam my teacher asked me to put sound effect in this , please tell what should i do in steps

  • @NeueSpiele
    @NeueSpiele Рік тому

    How could I color the paddle with a gradient to kind of match the gradient between the blocks?

  • @samuelparrott8558
    @samuelparrott8558 6 місяців тому

    14:23
    the ball is destroying the paddle as well

    • @kyroic6128
      @kyroic6128 6 місяців тому

      make sure using tags! for example create a tag for bricks and attach it to them. under OnCollisionEnter2D function, use ifs to make sure only destroy the bricks. just like this: if(collision.gameObject.tag == "Brick"){ Destroy(collision.gameObject) }

    • @kyroic6128
      @kyroic6128 6 місяців тому

      after you put this code, when ball collide with any object, it will check its tag if its equal to "Brick" and destroy only those ones.

  • @herbert-kenumera960
    @herbert-kenumera960 2 роки тому

    Goddamn that was a good tutorial.

  • @TheBittman
    @TheBittman 6 місяців тому

    I need help the text boxes don’t show up but have a blue T pls help

  • @iwoMalki
    @iwoMalki Рік тому

    Oh no! Why have you stopped making videos!

  • @gauriupadhyay8267
    @gauriupadhyay8267 10 місяців тому

    scripting is not working on paddle please give me solution how to resolve my problem

  • @mrgamer1123
    @mrgamer1123 2 роки тому

    Can you help me create procedural random maps ? I see that you have created a dungeon generator

    • @SilverlyBee
      @SilverlyBee  2 роки тому +2

      Do you mean Breakout levels? Or like the dungeon generator?

    • @mrgamer1123
      @mrgamer1123 2 роки тому

      @@SilverlyBee like simple level underground bunker type and some props inside bunkers rooms

  • @mikelchiey
    @mikelchiey Рік тому

    Uhmm hi great Tutorial by the way ..
    But I have an issue ...when I created my game over scene I tried the play again and it didn't work and I did everything accordingly

    • @SilverlyBee
      @SilverlyBee  Рік тому

      There could be many errors, but if I had to guess you probably didn't set the time scale back to 1

    • @mikelchiey
      @mikelchiey Рік тому

      @@SilverlyBee the thing is whenever I go to my on click function and I input level generator as my function
      I don't see the replay code that I created
      And I checked my script it's there

    • @paraclop422
      @paraclop422 Рік тому

      Try to put a "public" before "void restart" in your script

  • @theastralproject1268
    @theastralproject1268 2 роки тому

    hi my code doesnt have errors and it appears correct but the paddle wont stop at the edge of the max X

    • @vinroycrossman-walker6465
      @vinroycrossman-walker6465 Рік тому

      I'm aware this is a year old comment, but the problem you are probably having is most likely that the following line of code looks something like this.
      if((movementHorizontal>0 && transform.position.x

  • @shirinsajadian
    @shirinsajadian Місяць тому

    Do you have codes?

  • @finnawennijpels6045
    @finnawennijpels6045 2 роки тому

    hello silverlybee sorry to bother you here but can you make a remake of your farming game cuz it does not work with the new unity or share the project so i can make it better by miself and make it better and more fun

  • @Tigervp46
    @Tigervp46 11 місяців тому

    Test did not work and I am very sad 😢

  • @kirankrishna9246
    @kirankrishna9246 9 місяців тому

    how that color changing

  • @krisztiancserni1964
    @krisztiancserni1964 2 роки тому

    Hi! I've got no restart in the function why is that?

    • @artemouse4133
      @artemouse4133 Рік тому +6

      This is a bit late, but for anyone else facing this issue, type "public void Restart()" instead of just void and it should show up. I'm using the 2021 version and ran into the same issue, I'll bet it's some weirdness between versions.

    • @gamearrow1363
      @gamearrow1363 Рік тому

      @@artemouse4133 Ik this is really old but I love you thank you so much bro

    • @AbhishekRajawat-vp4bu
      @AbhishekRajawat-vp4bu 5 місяців тому

      @@artemouse4133 thanks man

  • @JongHyunSM
    @JongHyunSM 2 роки тому

    I missed your voice :D