Game Code Library
Game Code Library
  • Видео 63
  • Просмотров 213 993
Drag and Drop Inventory UI - Top Down Unity 2D #8
FREE SCRIPT for our Drag Handler below :-)
Drag and drop, expandable and simple inventory's are popular in 2D games. In this video we'll get the UI set up for our inventory!
We'll be using the menu UI we made in this video: ruclips.net/video/liba3xGI4gM/видео.html
FREE SCRIPT: www.patreon.com/posts/free-script-drag-113539544
Full Package and Code: www.patreon.com/posts/drag-and-drop-ui-113539243
Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP
Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack
All source code for all videos I have made and will make in the future can be found on my Patreon:
www.patreon.com/GameCodeLibrary
If you have any suggestions, feedback or questions, ...
Просмотров: 947

Видео

EASY Save and Load to JSON - Top Down Unity 2D #7
Просмотров 9142 месяца назад
You can save and load any data you need for your game to JSON with this easy script set! I use this method for all my Unity games - it's so clean, easy and simple! Like all the code we write ;-) We'll be adding a save button to our settings screen and loading on start of our game. Full Package: www.patreon.com/GameCodeLibrary Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Playl...
Menu with Tabs UI - Top Down Unity 2D #6
Просмотров 1 тыс.2 месяца назад
Let's add the UI in for our games menu system and add tab functionality! We'll be able to add as many tabs as we like to the top and switch between the corresponding pages. Then we'll be ready for our inventory and settings that we'll add in future videos - as well as any others you may want to add! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/m...
Map Transitions by Waypoints - Top Down Unity 2D #5
Просмотров 9113 месяца назад
When walking to the edge of our map, we'll set the map to move to the next area! We'll do this with adding collectible waypoints to our map grid so we can control all map movements. Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/triggered-map-2d-110520888 Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP All source code for all video...
Player Tracking and Camera Bounds - Top Down Unity 2D #4
Просмотров 1,4 тыс.3 месяца назад
Let's get our camera following our player and also staying within the bounds we set! So the camera will follow our player until hitting the sides of our boundary collision and stop. Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/player-tracking-109790549 Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP All source code for all videos...
PERFECT Tilemap Sorting Layers - Top Down Unity 2D #3
Просмотров 4,1 тыс.5 месяцев назад
Let's plan out the layers for our top down game! We'll be adding in: Walk in front, Collision, Walk behind, and more! We'll look at collisions on tilemaps and using sorting layers to give our game an amazing sense of depth! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Old Rule Tile Vid: ruclips.net/video/8UctaO5DwUE/видео.html Full Package: www.patreon.com/posts/106861111?pr=true ...
Idle and Walking Player Animations - Top Down Unity 2D #2
Просмотров 2,3 тыс.5 месяцев назад
Using blend trees and the animation controller, this beginner friendly and full tutorial on Animations will give you everything you need! We'll set up our players idle and walking animations to get him moving in a FANCY way. Movement Video: ruclips.net/video/DQY62meLVCk/видео.html Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/movement-with-2d-104...
Player Movement with Unity Input System - Top Down Unity 2D #1
Просмотров 2,2 тыс.5 месяцев назад
Beginner friendly and full tutorial on Player Movement using Unity's Input System! We'll also set up a default sprite for our player using the asset pack below. And look into serialized fields! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/movement-with-2d-104791237 Free Script: www.patreon.com/posts/free-script-with-104791310 Full Playlist: rucl...
Let's Make a Top Down Game! - Unity 2D #0
Просмотров 3,3 тыс.6 месяцев назад
Beginner friendly and any genre!! In this vid we'll plan out top down base template! And create our Unity project together. The idea will be to make this base template to then use and branch off to other game genres! Super exciting! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP All source code for all videos I have mad...
EASY Object Pooling - Unity Game Tutorial
Просмотров 8006 месяцев назад
This EASY video will show you object pooling and also make a mini space shooter game! We'll only need one script to get object pooling going - then we'll look at how we can get objects from our pools! Object pooling greatly improves performance of our games - so is an important pattern to learn! You can also grab the WHOLE package for this tutorial and mini shooter for only $2.99 on itch: gamec...
COMPLETE Platformer Tutorial! Over 40 Features - Unity 2D 2024
Просмотров 7 тыс.7 месяцев назад
By the end of this video you'll have all the skills and features you need to make an amazing 2d platformer. BUY THE COMPLETE GAME TEMPLATE NOW!!! gamecodelibrary.itch.io/2d-platformer-template www.patreon.com/GameCodeLibrary/shop All source code for all videos I have made and will make in the future can be found on my Patreon: www.patreon.com/collection/14573?view=expanded Check out the full pl...
Infinite Parallax Scrolling Background - Unity 2D Complete Tutorial
Просмотров 10 тыс.7 месяцев назад
We're going to add parallax to our 2D scene's background layers, then make it endlessly scroll! This is a complete tutorial - from adding player, setting up the camera - to a beautifully scrolling background! Basically make a whole endless runner / side scroller in 7 minutes :o FREE Player Package: www.patreon.com/posts/102090173 FULL Parallax Package: www.patreon.com/posts/102091009 Background...
Add 2D Lighting to Existing Project - Unity 2D
Просмотров 1,2 тыс.7 месяцев назад
Add 2D Lighting to Existing Project - Unity 2D
Lighting in 2D Games! URP Template Overview - Unity 2D
Просмотров 4397 месяцев назад
Lighting in 2D Games! URP Template Overview - Unity 2D
Start Menu - 2D Platformer Unity #28
Просмотров 9558 месяцев назад
Start Menu - 2D Platformer Unity #28
Background Music Manager - 2D Platformer Unity #27
Просмотров 5248 месяцев назад
Background Music Manager - 2D Platformer Unity #27
Sound Effect Manager - 2D Platformer Unity #26
Просмотров 6069 месяцев назад
Sound Effect Manager - 2D Platformer Unity #26
Speed Boost Item - 2D Platformer Unity #25
Просмотров 5979 месяцев назад
Speed Boost Item - 2D Platformer Unity #25
Hidden / Secret Areas - 2D Platformer Unity #24
Просмотров 6069 месяцев назад
Hidden / Secret Areas - 2D Platformer Unity #24
Spike Traps and Bounce Traps - 2D Platformer Unity #23
Просмотров 70010 месяцев назад
Spike Traps and Bounce Traps - 2D Platformer Unity #23
Falling Platforms - 2D Platformer Unity #22
Просмотров 60710 месяцев назад
Falling Platforms - 2D Platformer Unity #22
Moving Platforms - 2D Platformer Unity #21
Просмотров 1,3 тыс.10 месяцев назад
Moving Platforms - 2D Platformer Unity #21
Drop Down Through Platforms - 2D Platformer Unity #20
Просмотров 73410 месяцев назад
Drop Down Through Platforms - 2D Platformer Unity #20
BEST WAY to Dash through Enemies - 2D Platformer Unity #19
Просмотров 1,2 тыс.11 месяцев назад
BEST WAY to Dash through Enemies - 2D Platformer Unity #19
Healing with Health Items - 2D Platformer Unity #18
Просмотров 68411 месяцев назад
Healing with Health Items - 2D Platformer Unity #18
Enemy Drop Items on % - 2D Platformer Unity #17
Просмотров 99511 месяцев назад
Enemy Drop Items on % - 2D Platformer Unity #17
Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16
Просмотров 88411 месяцев назад
Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16
Game Over Screen and Retry Button - 2D Platformer Unity #15
Просмотров 1,2 тыс.Год назад
Game Over Screen and Retry Button - 2D Platformer Unity #15
Player Health and On Hit Effect - 2D Platformer Unity #14
Просмотров 1,4 тыс.Год назад
Player Health and On Hit Effect - 2D Platformer Unity #14
Advanced Object Spawning on Tilemap Platforms - 2D Platformer Unity #13
Просмотров 1,4 тыс.Год назад
Advanced Object Spawning on Tilemap Platforms - 2D Platformer Unity #13

Комментарии

  • @DeniNevsehirli
    @DeniNevsehirli 15 часов назад

    how can we fix the type or namespace tmp could not be found error

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

    This is great! :D

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

    it was sooo simple and easy other youtubers make it look soo hard thanks a lot :)

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

      Right!! I try to make everything as simple and quick as possible. Think I just put more effort into editing videos so I don’t waste your time too 😉

  • @rajatkushwaha2034
    @rajatkushwaha2034 3 дня назад

    Is this 3 hour video contains all that 40 features ? Is this a full fledge tutorial? Really?

    • @GameCodeLibrary
      @GameCodeLibrary 3 дня назад

      Yep that’s right!! It’s a compilation of all my previous videos in the series. I cut my videos to pure information, no fluff 😈

  • @AsyaKlcaslan
    @AsyaKlcaslan 3 дня назад

    Hi really good video thank you so much, but I have a question my character is flipping when I try to jump on a corner platform.Can you guys help me ?

  • @PoloniGabriel
    @PoloniGabriel 3 дня назад

    INSANE

  • @gudvinzis4479
    @gudvinzis4479 4 дня назад

    Perfect Tutorial you explained everything!!!

  • @JesarBhaa
    @JesarBhaa 5 дней назад

    Thanks For The Certificate :)

  • @chomnansaedan4788
    @chomnansaedan4788 5 дней назад

    short and sweet. wonderful

  • @udzprd7593
    @udzprd7593 5 дней назад

    Holy smokes, that's amazing :OO

  • @llll-nn1nb
    @llll-nn1nb 7 дней назад

    As a korean, Even though I wasn't good at English, your videos were so helpful !(+Your voice is so pretty that It was like listening to ASMR) Thank you so much~

    • @GameCodeLibrary
      @GameCodeLibrary 6 дней назад

      I’m so glad you enjoyed!! I try to speak as clearly as I can 🙏😊

  • @nnarcus
    @nnarcus 7 дней назад

    Great tutorial! The calm, deliberate delivery and walk though is top notch and makes it very easy to follow along. I've run into 2 problems and that is Light-tap jump not working with isgrounded, and the wire box not being drawn, which makes it hard for me to configure its size.

  • @tokkibh
    @tokkibh 7 дней назад

    I want to know why I don't have the confiner, I only have Confiner2D in unity

  • @deaybear
    @deaybear 8 дней назад

    Thank you for creating this series. You've got a knack for this. The video has clear instruction while leaving space to experiment a bit. Great inclusion of debugging as well.

    • @GameCodeLibrary
      @GameCodeLibrary 7 дней назад

      Thank you I'm glad you enjoyed! I try to make everything as open ended as possible so you can build as much as you like upon it :')

  • @princessbaeex
    @princessbaeex 9 дней назад

    It looks really weird when it snaps back how do we stop the snapping back?🥹

    • @GameCodeLibrary
      @GameCodeLibrary 8 дней назад

      When the game is playing you shouldn't be able to see it snapping!! Make sure your images at least the width of the camera :-)

    • @princessbaeex
      @princessbaeex 8 дней назад

      @ what if I‘m using a perspective camera?😅

  • @doctorrooshy2588
    @doctorrooshy2588 12 дней назад

    There is a problem i can't jump after i put the animation codes i tried pressing space but it didnt jump what should I do? Also good tutorial!

    • @GameCodeLibrary
      @GameCodeLibrary 12 дней назад

      As I can’t see your code all I can suggest is to watch the video and check you’ve done all the steps! Or check against the free code I gave :-) Everything to get it working is in the video!

  • @juni0r427
    @juni0r427 15 дней назад

    cannot implicitly convert type int to TMPro.TMP_text what would be a solution?

    • @GameCodeLibrary
      @GameCodeLibrary 15 дней назад

      When passing in your int, add ToString(); to the end of the int variable

  • @lee1davis1
    @lee1davis1 15 дней назад

    I find it odd that I searched RUclips for content like this playlist and your videos were not included in the list even though the title of this video was the same as my search keywords. Your video showed up in my recommendations weeks after I stopped searching. I know it's been more than a month since your stopped making vids but I hope you come back.

    • @GameCodeLibrary
      @GameCodeLibrary 15 дней назад

      Hey yeah the algorithm isn't much a fan of my videos yet!! :-P I have the next video mostly ready - just need to perfect the scripts so I get it right! Been busy at work but will hopefully have time around Christmas to get back on the consistent posting. Thank you for checking my stuff out :-)

    • @lee1davis1
      @lee1davis1 15 дней назад

      @GameCodeLibrary thanks for making the vids.

  • @tokkibh
    @tokkibh 17 дней назад

    Your voice is so soothing, Love the tutorials!

  • @blinks1159
    @blinks1159 17 дней назад

    Great video. When is the next one coming?

    • @GameCodeLibrary
      @GameCodeLibrary 17 дней назад

      Hey! I'm glad you enjoyed it! I'm slowly working on it but have been super busy at my job - so I don't have a timeline for it at the moment! Once things settle down near Christmas I hope to have more consistent uploads again. Sorry for the wait!

  • @llenvnn
    @llenvnn 17 дней назад

    Ur tutorial is amazing and so far the only one that worked out for me but I have a slight issue the background image isn't created outside of the screen like I can see the new asset being created do u know how I can fix that?

  • @BrandonMerrington
    @BrandonMerrington 18 дней назад

    Cant express how helpful this video is.

  • @risingdagger5416
    @risingdagger5416 18 дней назад

    Occupation : frog

  • @FanWrenEvans20nam
    @FanWrenEvans20nam 19 дней назад

    hey i know its a bit late but can you show a tutorial about double jump animations based on this , like i can make the double jump animations for it already but in the animator , the animations transition connect , i don't know how to connect to make a double jump animation after jump. Can you make a tutorial on this please , based on this game too. thanks a lot

  • @dhdr27
    @dhdr27 21 день назад

    This is such a good series, short and easy to follow. And also perfect to use this to write my own unity handy notebook. Thank you for taking the time for making this kind of videos

    • @GameCodeLibrary
      @GameCodeLibrary 20 дней назад

      Thank you I’m so glad you’re enjoying it!! :-)

  • @johnheim14
    @johnheim14 21 день назад

    Great concise tutorial, looking forward to continuing with the series!

  • @dhdr27
    @dhdr27 21 день назад

    In Case someone has the same problem with is line of Code "horizontalMovement = context.ReadValue<Vector2>().x;" . I had an Error under/with the Vector 2 => In the Top of the Script you need to remove the line "using System.Numerics;" // And also in Unity 6.0 velocity is change to linearVelocity

  • @aschmied
    @aschmied 22 дня назад

    I cannot wait for your next video; your tutorials are so helpful and I am currently making my own top-down game with the help of your videos!

    • @GameCodeLibrary
      @GameCodeLibrary 21 день назад

      So glad you’re enjoying them! Sorry for the wait on the next video, been so busy 🥲🙏

  • @jebskie7661
    @jebskie7661 22 дня назад

    your voice 😭😍, I bumped and sub into your channel because I was looking for a tutorial for parallaxFX

  • @KhanhDB-np6rt
    @KhanhDB-np6rt 22 дня назад

    for me ask why i cant use it in 2022 version Debug.Log(maincamera.ScreenToWorldPoint(Input.mousePosition));, anyone can help me pls thank you

  • @KhanhDB-np6rt
    @KhanhDB-np6rt 24 дня назад

    thanks

  • @casperyp4653
    @casperyp4653 24 дня назад

    great content

  • @Cobalt_Capacitor
    @Cobalt_Capacitor 24 дня назад

    This has helped me immensely, thank you so much! I used to do layers a bit differently but this method makes more sense. It also avoids weird overlaps.

    • @GameCodeLibrary
      @GameCodeLibrary 23 дня назад

      So glad I could help!! There’s lot of ways to make games and do every aspect of it, I just try and share what I find easiest 🙏

    • @Cobalt_Capacitor
      @Cobalt_Capacitor 23 дня назад

      @@GameCodeLibrary In our case we're working on a top-down game that relies heavily on projected lighting coming from the character's mounted flashlight. Your video was the perfect stepping stone to helping us better understand how to do "smoke and mirrors" lighting effects in 2D with different layers.

    • @GameCodeLibrary
      @GameCodeLibrary 22 дня назад

      @@Cobalt_Capacitor That sounds really cool! Faking lighting can work so much better for 2d games since it gives such a clean effect - but I do have a video on Unity's 2d lighting system if you ever want to try that out too!! Good luck with your game it sounds fun

  • @stephanieokoli2674
    @stephanieokoli2674 25 дней назад

    Hi! How do I add a fire animation to my game?

  • @Zary04
    @Zary04 26 дней назад

    🌲

  • @DaniLearnsTo
    @DaniLearnsTo 27 дней назад

    I've been looking for some help with the "new" input system, this is great, thank you!

  • @humanngan91
    @humanngan91 27 дней назад

    very helpful, thank you

    • @GameCodeLibrary
      @GameCodeLibrary 27 дней назад

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

  • @angrycatstudio2816
    @angrycatstudio2816 28 дней назад

    WallSlide flip()?

  • @crashbrocksta1333
    @crashbrocksta1333 28 дней назад

    i think i'm in love with you but that might change depending on if this tutorial helps me

  • @hercules5546
    @hercules5546 28 дней назад

    OMG THANK YOU, i was going insane, you are the first one that clearly explained the pixel per Unit, i was wondering why it looks so bad and no other tutorial explained it like you did, thank youuuu <3333333333333

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

    How do I do that with five different upper tiles???????

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

      I have a video here about layering tilemaps: ruclips.net/video/UId0mwanBZg/видео.html

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

    I did the player input and now my character walks automatically without pressing any keys. Gotta find what I did wrong :/

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

    Very helpful video, however I have a problem when I move my character and the camera is stationary, the character looks very blurry and hard to look at. Does anyone know how to fix this?

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

    Damn I'm such a noob. Everything looks different on my end and this tutorial is too fast to follow. I also don't have the same settings and options. Is she using some old version of Unity?

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

      I have a playlist where I go a lil slower and go through the whole creation of a platformer game here if you're interested! It's slightly newer too so may have similar options that you see. ruclips.net/p/PLaaFfzxy_80EWnrTHyUkkIy6mJrhwGYN0 I also have a top down series I'm starting and the animation video for that one is much much slower than the rest! ruclips.net/video/82U4ToJU-28/видео.html

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

    Hi! I’m having a glitch where if jump is pressed before hitting the ground, when the key is released once on the ground, the animation plays

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

    How would you handle this scenario: Player can walk on top of a bridge, but also underneath it?

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

    Hello! I love this video so far! I am having trouble though at 5:52 , there is no option to press Move :( Do you have any ideas of what I did wrong?

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

      Sorry for the late reply!!! The only thing I can think of is at 4:40 I import the using UnityEngine.InputSystem; Here's the full script from my video :') using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; public class PlayerMovement : MonoBehaviour { [SerializeField] private float moveSpeed = 5f; private Rigidbody2D rb; private Vector2 moveInput; // Start is called before the first frame update void Start() { rb = GetComponent<Rigidbody2D>(); } // Update is called once per frame void Update() { rb.velocity = moveInput * moveSpeed; } public void Move(InputAction.CallbackContext context) { moveInput = context.ReadValue<Vector2>(); } } Otherwise perhaps Unity Input System didn't download properly! perhaps try redownloading and opening and closing Unity. Hope you're well!

    • @RoryA-v2k
      @RoryA-v2k 26 дней назад

      Did you make sure the move function is set to public?

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

    Ya yeah ya yeah! Ooohhhh Yeah!

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

    Hey, I'm new to game development, and I love your videos! I downloaded the script from your Patreon, but my enemy is still not moving or chasing me. I dragged my player into the player Transform field and chose the correct Ground layer. I just can't seem to get the enemy moving. Thank you!

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

    Hello, i followed this tutorial and the movement works awesome in my game, however, when i build the game to test the game out on my pc (with the .exe ) the controls don't work, nothing happens, there's no error in the console or anything, right now i have the same exact code as you at the end of #2 of this video, so i'm not sure what could be the issue, thanks :)