Infinite Parallax Scrolling Background - Unity 2D Complete Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 53

  • @scoop9551
    @scoop9551 หลายเดือนก่อน +3

    Wow it's like the 4th parallax tutorial i've tried and this is the only one working perfectly thanks so much, i have subscribed

  • @ramsgallo5151
    @ramsgallo5151 6 หลายเดือนก่อน +6

    Your channel receives far less recognition than it deserves. Legitimately a hidden gem. Subscribed.

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน +1

      Thank you for your kind words!! I’ll keep making the best vids I can and hopefully it reaches the people who enjoy them! 😇🙏

    • @Atom-Mercury
      @Atom-Mercury 6 หลายเดือนก่อน

      @@GameCodeLibraryI’ll tell you what, your videos are quite beneficial. Keep up the great work. Your channel has 1million++ subs potential no doubt🎉

    • @GameCodeLibrary
      @GameCodeLibrary  5 หลายเดือนก่อน

      @Atom-Mercury thank you for your kind words 😌🙏 I’ll keep going!!

    • @abineshl1750
      @abineshl1750 หลายเดือนก่อน

      same way here.............Subscribed 👍

  • @NOpainNoGain176
    @NOpainNoGain176 3 หลายเดือนก่อน +1

    That was Super Helpful, Hoping to see more content, Thank you.

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน

      I’m glad it could help you!! Hopefully I can get back to releasing stuff soon 🙏 busy times!! Thank you!

  • @moiism_
    @moiism_ 6 หลายเดือนก่อน +1

    You never disappoint! I've really enjoyed and loved this video, it was really cool... making cinematics with this must be crazy! 🤭

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน

      Thanks for your kind words - means a lot!! 🤩 you’re right! I gotta try making some cinematics at some point…

  • @davidpaul1455
    @davidpaul1455 2 หลายเดือนก่อน +1

    fantastic! thank you so much. everything is so clearly explained step to step, I will definitely be following and checking out your future videos.

    • @GameCodeLibrary
      @GameCodeLibrary  2 หลายเดือนก่อน

      You're welcome! I'm glad you enjoyed it :-)

  • @91tj
    @91tj 3 หลายเดือนก่อน +1

    I am trying to make a proper parallax effect for a year I guess... And this is the only tutorial that really helped me.
    You are awesome!!! I wish I can like 1 million times...

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน

      So glad this worked well for you!! It’s also the easiest I’ve made parallax work so I’m glad you liked it :-)

  • @maizestarcan
    @maizestarcan 4 หลายเดือนก่อน +1

    Thanks for the tutorial, I follow your video from the player movement guide, and for the animations player it's really easy to follow and understand!

    • @GameCodeLibrary
      @GameCodeLibrary  4 หลายเดือนก่อน

      Yay I'm glad you enjoyed them :-)!

  • @mattrobb3566
    @mattrobb3566 6 หลายเดือนก่อน +1

    Brilliantly clear as always, thanks.

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน

      I’m glad it was clear! Think I went a bit fast on this one, but wanted to focus mainly on parallax 🙏😌

  • @TheHolyCornflake
    @TheHolyCornflake 6 หลายเดือนก่อน

    i'm not at all at this level, but i enjoy your videos.

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน +1

      This video can be for complete beginners too!! I know I talk pretty fast, but you can pause and rewatch any bits that seem complex 😝
      My first ever video covers slowly the player movement as well if you’d like to learn that properly!
      Glad you enjoyed too! Good luck with it all :-)

  • @vinivini2651
    @vinivini2651 19 วันที่ผ่านมา

    In your video, the character vibrates when she walks. I have this in my game and I don't know how to fix it, could you tell me?

    • @GameCodeLibrary
      @GameCodeLibrary  19 วันที่ผ่านมา +1

      It could be getting caught on the collider with friction! In your assets folder: right click:
      Create > 2D > Physics material 2D
      Then set friction to 0
      Click on your player and drag the physics material into the collider in the material slot
      This should make your character slide instead of having friction with the floor!

    • @D-zg9py
      @D-zg9py 21 ชั่วโมงที่ผ่านมา

      Hi, im quite late but in my case was the virtual camera. I set the "Look at" to none and fixed the problem

  • @GameCodeLibrary
    @GameCodeLibrary  14 วันที่ผ่านมา

    FREE Player Package: www.patreon.com/posts/102090173
    FULL Parallax Package: www.patreon.com/posts/102091009
    Get the Parallax Package for £3 alone - or spend £5 and join the Patreon for access to all of my videos content! 🙏

  • @pranshugupta1040
    @pranshugupta1040 6 หลายเดือนก่อน

    You're so aesthetic haha... Can you help me out please... So if i animate something just assume that I'm animating a leg of a player so when i change it's transformation position so there is a value which is changed of position so what will happen if i move my character using script will the objects(leg) keep animating in the same old space where it is animated or it'll come along with character while animating??....

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน

      Hey! If you parent the leg to the main character's gameobject by dragging the leg onto the main character object in the hierarchy - then when your character moves the leg will come with!
      Any children of a parented gameobject will follow with the parent as it's transform is moved.
      Hope this takes sense, good luck!

  • @junba1810
    @junba1810 2 หลายเดือนก่อน

    Hello, the tutorial is great and I'm grateful for it. However, I would like to ask for a more in-depth explanation of the movement float value. Why are we multiplying by 1 - parallaxEffect?? And why is it used to decide whether or not we are relocating the background? In essence, what I'm asking is, what does the variable movement represent?

    • @nishchaybhutani4507
      @nishchaybhutani4507 หลายเดือนก่อน +1

      The movement variable represents the movement of the background's position with respect to the camera. I'm still not able to grasp why we're shifting the background's position when the movement becomes greater than the startPos + length

  • @rvargas0972
    @rvargas0972 6 หลายเดือนก่อน

    Thank you so much for your videos :3

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน +1

      You're welcome! I'm glad you enjoy :-)

  • @bestmemes6017
    @bestmemes6017 2 หลายเดือนก่อน

    Thank you so much!

    • @GameCodeLibrary
      @GameCodeLibrary  2 หลายเดือนก่อน

      You’re welcome I’m glad you enjoyed 😊

  • @fabian_ftn6604
    @fabian_ftn6604 5 หลายเดือนก่อน

    Hello, Cant I just add the Camara as a Child of the player so it follows him instead of using Cinemachine? For some reason when I use Cinemachine my character movement seems a bit laggy

    • @GameCodeLibrary
      @GameCodeLibrary  5 หลายเดือนก่อน +1

      Yes you can do it in any way you prefer! :-)

    • @fabian_ftn6604
      @fabian_ftn6604 5 หลายเดือนก่อน

      @@GameCodeLibrary Alright Thank you very much. Keep up the videos they are really helpful and easy to keep up

    • @fabian_ftn6604
      @fabian_ftn6604 5 หลายเดือนก่อน

      @@GameCodeLibrary Do You have a Discord Server?

  • @FlashProUA
    @FlashProUA 3 หลายเดือนก่อน

    Thanks!

  • @doustarx9677
    @doustarx9677 6 หลายเดือนก่อน +1

    can you do a tutorial on the health bar plz

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน

      Hey! I’ve got one for a player health you can check out:
      Player Health and On Hit Effect - 2D Platformer Unity #14
      th-cam.com/video/zmQ3hKWxsmE/w-d-xo.html

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน

      If you wanted a bar instead of hearts, you can try merging this video which shows you how to use a slider…
      Progress Bar UI and Unity Events - 2D Platformer Unity #9
      th-cam.com/video/hj9ikydHttk/w-d-xo.html
      But I will be doing a series at some point where I’ll use a slider for a health bar! Just might be a while, so you can check those out until then :-)

  • @VinsTechStop
    @VinsTechStop 2 หลายเดือนก่อน

    tysm

  • @pranshugupta1040
    @pranshugupta1040 6 หลายเดือนก่อน +1

    And where did you learned all these...

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน +1

      Haha everything I've learnt has been a mixture of my computer science degree, my software engineer job, years of playing around with game dev in my free time, unity online documentation and other online courses and information!
      I clean up and simplify all code I write so it can be as best and easy as possible for you - so everything I learn from others I always try to improve upon! :-)

  • @TheTrueFriend.
    @TheTrueFriend. 6 หลายเดือนก่อน

    thank you so much, as always you are amazing
    Can you please do the same amazing videos for UE 5 ?
    I am a beginner so I barley know anything XD

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน

      Hey I’m glad you enjoyed!! 😇
      I’ve never used UE5 so we’d both be beginners teaching each other then!! But if I ever try it out and find my liking it, I’ll definitely make some vids sharing any knowledge on UE too! 🙏

    • @TheTrueFriend.
      @TheTrueFriend. 6 หลายเดือนก่อน

      @@GameCodeLibrary thank you so much , best wishes for you

  • @radovan_mladic
    @radovan_mladic 6 หลายเดือนก่อน +1

    Thanks, do you have some game of yours?

    • @GameCodeLibrary
      @GameCodeLibrary  6 หลายเดือนก่อน +5

      I have lots of games started, all code done but never finished!
      Thats why I made this TH-cam channel, to share the game logic I was writing but never releasing 🥲
      Hopefully one day I’ll commit to getting one finished! 🙏

  • @Chiefjony
    @Chiefjony 2 หลายเดือนก่อน

    Thank you so much! I saw many tutorials on parallax and this is the only one that worked 🫰

    • @GameCodeLibrary
      @GameCodeLibrary  2 หลายเดือนก่อน

      So glad it worked well for you! :-)