PERFECT Tilemap Sorting Layers - Top Down Unity 2D #3

  Рет қаралды 5,650

Game Code Library

Game Code Library

Күн бұрын

Пікірлер: 38
@GameCodeLibrary
@GameCodeLibrary 10 күн бұрын
Check out the full tutorial playlist📋: kzbin.info/aero/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP Download the Top Down Template🐸: gamecodelibrary.itch.io/top-down-2d-base-template Get all source code‼: www.patreon.com/c/GameCodeLibrary Enjoy!!
@TomDytorn
@TomDytorn 6 ай бұрын
easy to follow guide, good pacing, straight to the point! if I have two thumbs I would give this three thumbs up
@GameCodeLibrary
@GameCodeLibrary 6 ай бұрын
Thank you Tom 😌🙏 hopefully it can come in handy!
@rvargas0972
@rvargas0972 6 ай бұрын
Great video GCL! Thank you so much for this video. The explanation was Very clear, as always. I was using Tiled for the map but I think I'm going to use Unity's editor for the map too. Anyways, thank you so much! :D I'll keep an eye to the stream notif! :3
@libertylinch8337
@libertylinch8337 3 ай бұрын
Very nice video, and great organization of the tile layers. The way you explain things is really clear and makes the tutorial easy and enjoyable to follow!
@GameCodeLibrary
@GameCodeLibrary 3 ай бұрын
So glad they can help out and you enjoy them :-) Thank you for your support and kind words!!
@Cobalt_Capacitor
@Cobalt_Capacitor Ай бұрын
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 Ай бұрын
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 Ай бұрын
@@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 Ай бұрын
@@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
@toshiroh5997
@toshiroh5997 6 күн бұрын
one of the best tutorials ever
@GameCodeLibrary
@GameCodeLibrary 6 күн бұрын
So glad you enjoyed :')
@hanni6383
@hanni6383 19 күн бұрын
What can i do? My player have a height of 2 tiles. If i go behind a tree with a lets say 6 tiles height i just cant sorting the bottem tile wiith the colloder part. How can i solting the second tile, the tile with the tree trunk?
@MrFactor02
@MrFactor02 5 ай бұрын
1000 times thank you, I really struggled to understand this principle with layers, I look forward to your future videos :)
@GameCodeLibrary
@GameCodeLibrary 5 ай бұрын
So glad I could help!! Breaking them down into logical layers helps a lot with how I think about them too :P
@Oksel997
@Oksel997 2 ай бұрын
How would you handle this scenario: Player can walk on top of a bridge, but also underneath it?
@theoneandonly3086
@theoneandonly3086 5 ай бұрын
using your vids to help make my own , so far so good , waiting for that camera movement vid
@GameCodeLibrary
@GameCodeLibrary 5 ай бұрын
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 5 ай бұрын
@@GameCodeLibraryThoughts and prayers to you and you're family 🙏
@toocoolbroyeah
@toocoolbroyeah 3 ай бұрын
Nice video! Thank you, just curious which unity version are you using?
@byronmorley2907
@byronmorley2907 6 ай бұрын
nice and clear, how would you deal with animations from the player that extend beyond the rigid body, this would cause the part that's extended to clip through the point where the pillar is divided between layers
@GameCodeLibrary
@GameCodeLibrary 6 ай бұрын
There's a few different ways you can deal with this tricky issue! One way you could try is temporarily change the sorting layer of the player's sprite renderer - so when you play the animation it sets the layer to be one that you require (always infront? always behind? whichever works best for you!) There are more advanced ways of dealing with this using customer shaders for dynamic sorting, but I haven't worked enough with those to give any good advice there :p
@Yavuz1411-ij7mj
@Yavuz1411-ij7mj 3 ай бұрын
I like your videos! Great to follow along. I have a question, can you still do the collisions using tilemap if you have a player sprite taller than 1 tile?
@GameCodeLibrary
@GameCodeLibrary 3 ай бұрын
Thank you I'm glad you enjoy them! Yeah the collisions will work no matter the size of your character - as long as the collider around your player matches the players sprites height :-)
@Yavuz1411-ij7mj
@Yavuz1411-ij7mj 3 ай бұрын
@GameCodeLibrary I am not a native speaker so I am sorry if my English is not clear. I should have explained my problem more clearly. I only want my players feet to have collision, but when I do it that way, layers dont really work. The players head stays behind layers while the feet are in front and I cannot change these layers to walkInFront since they are meant to be walkBehind layers. What I was trying to ask in my original question was if it was possible to make these layers work for a 2 tile tall player sprite using only tilemaps or should I use gameobjects as walls, layers etc.?
@GameCodeLibrary
@GameCodeLibrary 3 ай бұрын
​@@Yavuz1411-ij7mj I see what you mean! That's tricky! I know there is a way of sorting sprites using Sprite Mask - but I haven't worked with this much so can't give good advice on it. Sorry my tutorial didn't work for your game! I'll keep thinking of a way to help and let you know if I come up with anything 😝
@skie1978
@skie1978 6 ай бұрын
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 6 ай бұрын
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 🤔
@la_palma_dei_gamer4346
@la_palma_dei_gamer4346 16 күн бұрын
guys someone still here? i need help why in my tilemap collider 2d does not appear "used by composite"?
@toshiroh5997
@toshiroh5997 6 күн бұрын
hey, are you using unity 6? I faced the same problem and I started using composite operation with merge style
@GiangNguyen-ho5st
@GiangNguyen-ho5st 6 ай бұрын
I think there is another technique, using the pivot point y axis to sort objects in front or behind one another.
@craigbryan1479
@craigbryan1479 5 ай бұрын
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 5 ай бұрын
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! kzbin.info/www/bejne/lam8lKV6n9Odg5o
@craigbryan1479
@craigbryan1479 5 ай бұрын
@@GameCodeLibrary I thought I'd watched all your videos. It seems this one slipped through the net. Thanks 😊
@_Orothin
@_Orothin Ай бұрын
This is great! :D
@GameCodeLibrary
@GameCodeLibrary Ай бұрын
So glad you enjoyed!!
@KhanhDB-np6rt
@KhanhDB-np6rt Ай бұрын
thanks
@barkis6306
@barkis6306 21 күн бұрын
im in the thick of it
Player Tracking and Camera Bounds - Top Down Unity 2D #4
5:59
Game Code Library
Рет қаралды 2,1 М.
Complete Unity 2D Platformer Tutorial - Easy for Beginners 2024
2:56:45
Game Code Library
Рет қаралды 10 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Easy Tilemaps and Dynamic Auto Tiling - Unity 2D
5:50
Game Code Library
Рет қаралды 30 М.
Unity Top Down Colliders and Character Movement - Tutorial
8:32
CouchFerret makes Games
Рет қаралды 199 М.
Simple 2D Movement in Unity
9:13
Damm Labs
Рет қаралды 356
Popup on Item Pickup UI - Top Down Unity 2D #11
12:37
Game Code Library
Рет қаралды 182
Player Movement with Unity Input System - Top Down Unity 2D #1
7:55
Game Code Library
Рет қаралды 3,1 М.
Draw fewer tiles - by using a Dual-Grid system!
6:22
jess::codes
Рет қаралды 708 М.
Technique for Creating Beautiful Level Design
11:48
Pixel Architect
Рет қаралды 906 М.
Minecraft images that are 100% wholesome to end the year.
11:23
Phoenix SC
Рет қаралды 420 М.
Idle and Walking Player Animations - Top Down Unity 2D #2
18:03
Game Code Library
Рет қаралды 3 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН