Game Code Library
Game Code Library
  • 56
  • 137 836
PERFECT Tilemap Sorting Layers - Top Down Unity 2D #3
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: th-cam.com/video/8UctaO5DwUE/w-d-xo.html
Full Package: www.patreon.com/posts/106861111?pr=true
Full Playlist: th-cam.com/play/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP.html
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
Be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)
If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡
Check out the full platformer playlist!
th-cam.com/play/PLaaFfzxy_80EWnrTHyUkkIy6mJrhwGYN0.html
BUY THE COMPLETE PLATFORMER GAME TEMPLATE NOW!!!
gamecodelibrary.itch.io/2d-platformer-template
www.patreon.com/GameCodeLibrary/shop
#unity #gamedev #gamedevelopment #unity2d #tilemap
0:00 - Intro
0:18 - Plan
1:33 - Asset Pack
1:49 - Tileset Sprite Setup
3:21 - Tile Palette Window
3:43 - Create Tilemap
4:05 - Create Ground Palette
5:20 - Ground Layer
5:30 - Add Sorting Layers
6:42 - Create House Palette
7:11 - WalkInFront Layer
8:18 - Collision Layer
9:16 - Player Collider
9:58 - WalkBehind Layer
10:45 - Decor Layer
12:12 - Next Video!
12:30 - Livestream?!*
12:42 - *Rule Tile Preview
13:07 - Outro
มุมมอง: 1 022

วีดีโอ

Idle and Walking Animations - Top Down Unity 2D #2
มุมมอง 650หลายเดือนก่อน
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: th-cam.com/video/DQY62meLVCk/w-d-xo.html Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/movement-with-2d-104...
Movement with Unity Input System - Top Down Unity 2D #1
มุมมอง 7252 หลายเดือนก่อน
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: th-c...
Let's Make a Top Down Game! - Unity 2D #0
มุมมอง 1.8K2 หลายเดือนก่อน
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: th-cam.com/play/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP.html All source code for all videos I h...
EASY Object Pooling - Unity Game Tutorial
มุมมอง 5402 หลายเดือนก่อน
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
มุมมอง 3.7K3 หลายเดือนก่อน
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
มุมมอง 3.1K3 หลายเดือนก่อน
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
มุมมอง 5684 หลายเดือนก่อน
In this video we'll be looking at how to add URP 2D Lighting to an existing Unity project by adding in the URP package. Overview of 2D URP Lighting: th-cam.com/video/pzBbqFrsNnk/w-d-xo.html All source code for all videos I have made and will make in the future can be found on my Patreon: www.patreon.com/posts/start-menu-2d-100219159 Get my Platformer Package: gamecodelibrary.itch.io/2d-platform...
Lighting in 2D Games! URP Template Overview - Unity 2D
มุมมอง 3234 หลายเดือนก่อน
In this video we'll be looking at how to add 2D Lighting in a Unity game when using the 2D URP template with a new project. We'll look at a few types of lighting effects! Add lighting to your existing game: th-cam.com/video/PpgRRb1sXrk/w-d-xo.html All source code for all videos I have made and will make in the future can be found on my Patreon: www.patreon.com/posts/start-menu-2d-100219159 Get ...
Start Menu - 2D Platformer Unity #28
มุมมอง 6724 หลายเดือนก่อน
In this video we'll be adding a start menu for the opener of our Platformer game! This'll include scene switching, for moving from the menu to the game, and also an exit button that'll close our application down. Also - the full controller is now available for purchase!! BUY THE COMPLETE GAME TEMPLATE NOW!!! gamecodelibrary.itch.io/2d-platformer-template All source code for all videos I have ma...
Background Music Manager - 2D Platformer Unity #27
มุมมอง 4254 หลายเดือนก่อน
In this video we'll be adding background music to our game! We'll create a music manager which can be called from anywhere in our game to: play, pause, change and reset our background music! ❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️ gamecodelibrary.itch.io/2d-platformer-template All source code for all videos I have made and will make in the future can be found on my Patreon: www.pa...
Sound Effect Manager - 2D Platformer Unity #26
มุมมอง 4525 หลายเดือนก่อน
In this video we'll be adding sound effects to our game! We'll create a sound effect library which will hold multiple audio clips to be randomly called - so our game stays interesting. Then we'll create a static Sound Effect Manager that will allow us to easily play our sound effects from any script in the project! ❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️ gamecodelibrary.itch.io/2d...
Speed Boost Item - 2D Platformer Unity #25
มุมมอง 4265 หลายเดือนก่อน
In this video we'll be adding speed boost items to our platformer. On pickup - we'll increase our players speed (temporarily!) and activate a cool trailing particle effect. ❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️ gamecodelibrary.itch.io/2d-platformer-template All source code for all videos I have made and will make in the future can be found on my Patreon: www.patreon.com/posts/sp...
Hidden / Secret Areas - 2D Platformer Unity #24
มุมมอง 4426 หลายเดือนก่อน
Hidden / Secret Areas - 2D Platformer Unity #24
Spike Traps and Bounce Traps - 2D Platformer Unity #23
มุมมอง 5166 หลายเดือนก่อน
Spike Traps and Bounce Traps - 2D Platformer Unity #23
Falling Platforms - 2D Platformer Unity #22
มุมมอง 3786 หลายเดือนก่อน
Falling Platforms - 2D Platformer Unity #22
Moving Platforms - 2D Platformer Unity #21
มุมมอง 7206 หลายเดือนก่อน
Moving Platforms - 2D Platformer Unity #21
Drop Down Through Platforms - 2D Platformer Unity #20
มุมมอง 4997 หลายเดือนก่อน
Drop Down Through Platforms - 2D Platformer Unity #20
BEST WAY to Dash through Enemies - 2D Platformer Unity #19
มุมมอง 9407 หลายเดือนก่อน
BEST WAY to Dash through Enemies - 2D Platformer Unity #19
Healing with Health Items - 2D Platformer Unity #18
มุมมอง 5017 หลายเดือนก่อน
Healing with Health Items - 2D Platformer Unity #18
Enemy Drop Items on % - 2D Platformer Unity #17
มุมมอง 7177 หลายเดือนก่อน
Enemy Drop Items on % - 2D Platformer Unity #17
Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16
มุมมอง 6628 หลายเดือนก่อน
Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16
Game Over Screen and Retry Button - 2D Platformer Unity #15
มุมมอง 9018 หลายเดือนก่อน
Game Over Screen and Retry Button - 2D Platformer Unity #15
Player Health and On Hit Effect - 2D Platformer Unity #14
มุมมอง 1.1K8 หลายเดือนก่อน
Player Health and On Hit Effect - 2D Platformer Unity #14
Advanced Object Spawning on Tilemap Platforms - 2D Platformer Unity #13
มุมมอง 1.1K8 หลายเดือนก่อน
Advanced Object Spawning on Tilemap Platforms - 2D Platformer Unity #13
Dynamic Enemy AI to Jump Gaps and Chase Player - 2D Platformer Unity #12
มุมมอง 2K8 หลายเดือนก่อน
Dynamic Enemy AI to Jump Gaps and Chase Player - 2D Platformer Unity #12
Hold Button to Load Level - 2D Platformer Unity #11
มุมมอง 1.3K9 หลายเดือนก่อน
Hold Button to Load Level - 2D Platformer Unity #11
Jump Through Platforms (No Code!) - 2D Platformer Unity #10
มุมมอง 9639 หลายเดือนก่อน
Jump Through Platforms (No Code!) - 2D Platformer Unity #10
Progress Bar UI and Unity Events - 2D Platformer Unity #9
มุมมอง 1.2K9 หลายเดือนก่อน
Progress Bar UI and Unity Events - 2D Platformer Unity #9
Advanced Item Pickup with C# Interfaces - 2D Platformer Unity #8
มุมมอง 1.5K9 หลายเดือนก่อน
Advanced Item Pickup with C# Interfaces - 2D Platformer Unity #8

ความคิดเห็น

  • @RiotPoppy702
    @RiotPoppy702 3 วันที่ผ่านมา

    This is so helpful! Tried multiple other tutorials before this, were all full of confusing, roundabout instructions. This is clear, straight to the point, and very well organized.

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

      So glad you enjoyed!! That’s exactly why I started making these videos - I tried following others online and would get annoyed at how badly they were made 😭 you’d follow along and they’d be like “woops made a mistake gotta go back!!” Ahh!! I’ll get some new vids up soon hopefully 🫡 Thanks!

  • @bestmemes6017
    @bestmemes6017 4 วันที่ผ่านมา

    Thank you so much!

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

      You’re welcome I’m glad you enjoyed 😊

  • @wasdolgaming6718
    @wasdolgaming6718 5 วันที่ผ่านมา

    OMG thanks, really thanks, I was stuck on this for 8 hours straight (I just had to go to Quality and there upgraded it), thank you so much, u got a new subscriber

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

      So glad I could help!! I always forgot how to do this too, so I'll probably be using it as a reminder myself in the future :p

  • @GhostHack_1
    @GhostHack_1 5 วันที่ผ่านมา

    Your videos are gems. Thanks so much for posting them!

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

      I'm glad you enjoy them!! Hopefully I'll have time to getting back on regular uploading again soon :')

  • @gustavoincode7620
    @gustavoincode7620 8 วันที่ผ่านมา

  • @Cerowsee
    @Cerowsee 9 วันที่ผ่านมา

    What would I have to do to make the sprite not flip during my idle animation.

  • @GhostHack_1
    @GhostHack_1 10 วันที่ผ่านมา

    Something to keep in mind when using the `Update()` function in unity, is `Time.deltaTime()`. You'll want to multiply by that when moving your player around to keep the experience smooth across multiple systems whose specs may differ and effect the framerate. Really like the format of your videos and your energy. Thanks so much!

  • @nèBảo1405
    @nèBảo1405 14 วันที่ผ่านมา

    It took me all day to code but this video does it in just a minute :)))

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

      So glad I could help :-) 🙏

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

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

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

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

  • @KIRANTD-ek9bo
    @KIRANTD-ek9bo 18 วันที่ผ่านมา

    Будто бы в видео не полный код.

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

      I start with the code from this video: th-cam.com/video/pYu36PLmdq0/w-d-xo.html The rest of the code is in the video! The full package is also on my Patreon for free if you wanna grab it and see

    • @KIRANTD-ek9bo
      @KIRANTD-ek9bo 18 วันที่ผ่านมา

      @@GameCodeLibrary А можете подсказать почему когда я управляю объектом, с помощью кода для перемещения, то постоянно в рандомные моменты персонаж резко останавливается, и не продолжает двигаться вперед, почему?

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

    your tutorials are super helpful and easy to follow! thank you so much!!

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

      So glad you enjoyed them!! :-)

  • @totheMoon-qv4jn
    @totheMoon-qv4jn 20 วันที่ผ่านมา

    Thank you, it really helped me 💪

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

      So glad it helped!! :-)

  • @theoneandonly3086
    @theoneandonly3086 21 วันที่ผ่านมา

    using your vids to help make my own , so far so good , waiting for that camera movement vid

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

      Glad you're enjoying it! Sorry on the wait for the next vid - my dad died so we had the funeral and all the paperwork to figure out! Still going through everything so can't give you a date for the camera vid sadly 🙏

    • @theoneandonly3086
      @theoneandonly3086 20 วันที่ผ่านมา

      @@GameCodeLibraryThoughts and prayers to you and you're family 🙏

  • @HellTraveler
    @HellTraveler 23 วันที่ผ่านมา

    lovely quick guide !

  • @jj_realm7040
    @jj_realm7040 24 วันที่ผ่านมา

    Hi there, Thank you so much for all of your videos. So basically this video is a compilation of all the 28 videos previously? Thank you

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

      Hey! Yeah this video: th-cam.com/video/Pkc4A1ukbJU/w-d-xo.html Is one big long vid of the previous 28 :-) Some people prefer it all in one video rather than separate! If you're looking for specific features, the individual videos are better!

    • @jj_realm7040
      @jj_realm7040 23 วันที่ผ่านมา

      ​@@GameCodeLibrarythank you so much. ❤❤

  • @FlashProUA
    @FlashProUA 24 วันที่ผ่านมา

    Thanks!

  • @giovani74
    @giovani74 25 วันที่ผ่านมา

    This is one of the best instructional videos I have seen. Nice work

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

      Thank you I’m so glad you enjoyed it!!

  • @iop313
    @iop313 25 วันที่ผ่านมา

    Have to admit the best one so far all other script didn't worked but now the enemy doing something (flothing)

  • @bentheafrican
    @bentheafrican 25 วันที่ผ่านมา

    nice tutorial, the problem I'm facing with the code is that the player jumps once and that's it, it can't jump mutliple time once you hit play. do you have any solution? Because I'm using Unity 2022.3

  • @gamertonic9398
    @gamertonic9398 27 วันที่ผ่านมา

    When I reach the Aim part of the video [up to 3:48] my player movement suddenly moves really slow and I don't know what the issue is?

  • @RicityYT
    @RicityYT 27 วันที่ผ่านมา

    pov: im explain the fnaf lore

  • @winter7843
    @winter7843 28 วันที่ผ่านมา

    Great tutorial, this code helped me a lot, thank you very much.

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

      I'm glad I could help!!! :-)

  • @craigbryan1479
    @craigbryan1479 28 วันที่ผ่านมา

    I love your videos, I'm able to learn more from you than most other tutorials because your style suits me very well! However, you say that this series is for anyone as long as we are creating a top-down game. But that isn't really correct. A true top-down game would use the same walking animation for each direction but rotate the sprite to face that direction. I know that isn't the style you are going for with this game but would you perhaps consider a small video #2.5 to demonstrate how to do that? Thanks

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

      You’re right!! I actually did this in a previous video - but since the sprite sheet I used contained a sprite for both directions, I thought I’d show it this way as well. You can check out my previous video where I flip the character! th-cam.com/video/_xYcrDjnjM8/w-d-xo.html

    • @craigbryan1479
      @craigbryan1479 28 วันที่ผ่านมา

      @@GameCodeLibrary I thought I'd watched all your videos. It seems this one slipped through the net. Thanks 😊

  • @seaderwerks3046
    @seaderwerks3046 29 วันที่ผ่านมา

    I just wanted to say thank you. I've been stuck on a spawning prefab issue now for a few days and just recently came across this video you uploaded. Implemented a similar approach and now my fishing mini game works in my game. Thank you for this tutorial.

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

      So glad I could help!! I love this method of spawning objects since you can reuse this script over any game in the future 🙏 hope your game goes well!

  • @_maxt
    @_maxt 29 วันที่ผ่านมา

    this is exactly what I was looking for. quick and to the point without fluff. thank you

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

      Exactly why I started this channel, I was tired of the long winded explanations! I use my own videos as quick reminders now too haha

  • @RicityYT
    @RicityYT 29 วันที่ผ่านมา

    ima make a game call MaRiomagined, basically Super Mario Bros. on the nes, but better! new sub

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

      That’s such a fun idea and also such a clever name I love it!

    • @RicityYT
      @RicityYT 29 วันที่ผ่านมา

      @@GameCodeLibrary thanks! i cant do it rn, but i can learn how to do it. im busy this week, but im very excited to work on it

    • @RicityYT
      @RicityYT 27 วันที่ผ่านมา

      more to add on this, basically, instead of defeating bowser, he's ki- i mean, unaliving him, and he's going through different places, not a direct copy of mario for the nes bc the big boi company gonna get angy and lawsuit :(

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

    beautiful job

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

    1000 times thank you, I really struggled to understand this principle with layers, I look forward to your future videos :)

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

      So glad I could help!! Breaking them down into logical layers helps a lot with how I think about them too :P

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

    I have a problem! Unity says the code is correct, but the player always resorts to facing backwards!!! Do you know any fixes for it???

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

      On your characters sprite renderer, tick “flip x” or something like that! Your sprite must be facing the opposite way to mine :P

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

    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 หลายเดือนก่อน

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

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

    I'm so surprised this channel doesn't have more subs. You teach in such an easy to learn way. Thanks so much! 🌟

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

      So you glad enjoyed!! As long as I can help even one person then I feel happy 😌🙏

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

    You're my favourite amongst the british "people"

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

    Wonderful video. Very easy and good pacing. Please create more tutorial. Just a silly question, what can I do after drawing all the objects but later realize I draw on the wrong tilemap because I forget to change the layer in the palette? :)

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

      Thank you I’m glad you enjoyed! You can always use the eraser tool to remove any incorrect tiles, then redraw on the right map! You can also copy and paste tiles with the selection tool in the tilemap, but that can be tricky to get the exact ones you want 🤔