Тёмный

Unity Top Down Level Design with Grids and Sorting Order - Tutorial 

CouchFerret makes Games
Подписаться 29 тыс.
Просмотров 125 тыс.
50% 1

We will Design our first Level for our Top Down Pixel Art Game with proper Sorting Order. We will use Grids to precisely position our Elements in our 2d Map, just like in a Level Editor. We will also talk about Snapping and we will set it up so it works on a Pixel basis helping us while creating the Level. We will define separate Pivot Points for Positioning and Sorting as well.
Are you interested in making games with Unity?
I upload every Saturday, so stay tuned and consider subscribing!
Hi, I'm CouchFerret and follow me on my journey of indie game development. You will find WEEKLY in depth tutorials about developing games in Unity. We will cover topics from programming to art and game design. Whether you are an expert or beginner, you will definitely find new tips and tricks about the whole game development process. These how to videos help you learn unity to develop 2d and 3d games on your own
#Unity #UnityTutorial #gamedev

Опубликовано:

 

19 ноя 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 135   
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
*Hey everyone!* 👏 👏 I'm happy to announce our community *Discord server* , come and *join us* : discord.gg/dac7sr2 And also, you can get all the *Sprites* and *Project Files* by supporting me on *Patreon* : www.patreon.com/CouchFerret
@HowfWuff
@HowfWuff 4 года назад
Hey, a question, what woulf one do for a tilemap? My player character is using a sprite renderer so I can use the sort point, but thr tilemap doesn't allow for that, have any ideas?
@ExStefen
@ExStefen 2 года назад
Came here to thank you for your videos years later. I am currently on the end of my second year in Games Programming (Intermediate to low level). I used your videos as reference when I was doing Games development during College. Thanks a lot!
@adrianpop3202
@adrianpop3202 5 лет назад
I love u man. Been searching for the render pivot thing for quite some time
@Joshtapus
@Joshtapus 5 лет назад
My god this was exactly what I needed
@WuxiaNovelsAudiobookHD
@WuxiaNovelsAudiobookHD 4 года назад
Thank you for this guide! It was exactly what I was looking for!
@ArtiseBrown
@ArtiseBrown 5 лет назад
These tutorials have come at such a good time. My first uni assignment is making a top-down game and these tutorials have helped out a bunch so far.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Thank you! :) If I may ask, what uni are you attending? We don't have game related programmes over here, so I'm jealous a bit.
@ArtiseBrown
@ArtiseBrown 5 лет назад
@@CouchFerretmakesGames Northampton uni in England and before that I did two years of games development in college.
@HomeGameCoder
@HomeGameCoder Год назад
Excellent video! Congrats! on a side note: Hierarchy, Project and Inspector all together? What a gem! That's the only way to properly use unity without traveling kilometers with your mouse! I found your channel now and subscribed because of that! is so much more comfortable to use and see! (I even prefere long inspector and collapsed project, but your way is 1000x better than default!
@direfulkn1f337
@direfulkn1f337 3 года назад
Thank you so much, I was looking everywhere for something like this. Subscribed :)
@dotaportalvideo
@dotaportalvideo 4 года назад
Great video. Glad you're uploading again.
@xXTHE_QUAGXx
@xXTHE_QUAGXx Год назад
Im at work watching this so havent gotten to implement it yet but THANK YOU SO MUCH! My game desperately needs this! Subbed to you 👊
@Pikrip
@Pikrip 5 лет назад
seriously cool series!!
@lachy4565
@lachy4565 3 года назад
Thanks so much, was looking for how to change the sorting order for ages.
@robsonsiqueira9776
@robsonsiqueira9776 2 года назад
Thanks, it helped me a lot!
@PorcoPorchetto
@PorcoPorchetto 2 года назад
Man you have my humblest thanks
@D4Devil_
@D4Devil_ 5 лет назад
This is a very usefull tutorial and i am glad for your work! Tnx!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Thank you Damian! 😊
@batuhandev4847
@batuhandev4847 5 лет назад
Give us more tutorial CouchFerret! Englight us with your infinite knowledge!
@soulessnic1158
@soulessnic1158 Год назад
Perfect explanation thank you so much
@PearlyFostter
@PearlyFostter 3 года назад
thanks! that helped me so much!
@gamewizards6625
@gamewizards6625 4 года назад
Great tutorial you helped me a lot
@ahttekan
@ahttekan 5 лет назад
I'm so impressed with your videos, you've talked about ways to handle things in Unity that I've never seen before! I hope you cover GUI as well, I've been struggling a ton with that =]
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Thanks! :) I'll do GUI when I get there, I promise. :)
@jinthwang3745
@jinthwang3745 5 лет назад
Cool!
@iansong1676
@iansong1676 5 лет назад
Great video!!
@MRzFIRE
@MRzFIRE 5 лет назад
love your videos
@siddharthsen4475
@siddharthsen4475 5 лет назад
Thanks,keep this up I look forward to your next video!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
I'm on it! ;) Stay tuned!
@user-xm3hd1lj6j
@user-xm3hd1lj6j 5 лет назад
Thanks!
@Abhijeet1520
@Abhijeet1520 5 лет назад
You and your videos are awesome.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Thank you! :)
@kalyoncubusiness9168
@kalyoncubusiness9168 Год назад
nice video mate well done
@camoraz
@camoraz 3 года назад
You're awesome!!!!!!
@abject_ladder
@abject_ladder 3 года назад
Really great videos! Do you show in any of them how you make the gradient-looking blotches of colour on the grass that are shown on the thumbnail? If not, would you mind sharing how you did that please?
@weitnow
@weitnow 5 лет назад
great content
@ZarifMont
@ZarifMont 4 года назад
best Channel
@Manhsterz
@Manhsterz 3 года назад
Your tutorials are practical and well explained. Thanks !
@user-fu1ie8dj8k
@user-fu1ie8dj8k 3 года назад
Component grid doesn't work on Unity 2019.4.11?? I can't move object like on video
@papafhill9126
@papafhill9126 2 года назад
You: If it sounds fun, subscribe Me: SUBSCRIBED!!!
@BrendanSadaka
@BrendanSadaka Год назад
Thanks for the great video! I'm wondering, if I have a shadow as a child under a tree object, for example, how can I force that shadow child to always be below the player regardless of the parent sorting group?
@user-ph3tf7qr9j
@user-ph3tf7qr9j 2 года назад
nice
@TheKot1k
@TheKot1k 5 лет назад
*Oh, veery good! I try to do game like SoulKnight, and your tutorials help me, tnx*
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
You're welcome! :) I've just checked Soul Knight out, pretty neat game.
@user-vb6sm4ew9r
@user-vb6sm4ew9r 2 года назад
Genius..
@loux6153
@loux6153 5 лет назад
I appreciate your work :)
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Thanks! ^ - ^
@Tersina
@Tersina 5 лет назад
Your voice is so soothing, I could listen to it all day uwu
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Thanks! ^ - ^
@ggentertainment2737
@ggentertainment2737 4 года назад
now, these are just pixel images on a high res screen is there a way to keep the models to the pixels. so that the player moves in a kind of snappy way across the screen snapping to each pixel.
@ALEX_R0701
@ALEX_R0701 3 года назад
Thank you so much!
@orchard800
@orchard800 5 лет назад
Hey CouchFerret. Great tutorial series! I'm trying to do this with a multi-part sprite. How would you change the pivot point of the whole character (ie the parent game object)?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Hey David! With multi-part sprites, you would have multiple child objects under the parent gameobject. Because of the SortingGroup component all the children's sprite renderers are using the parent's position as the pivot. I'm not sure I'm getting your question though. Could you give me some clarification?
@orchard800
@orchard800 5 лет назад
@@CouchFerretmakesGames Thank you!! I didn't know about the sorting group component. And of course, the position of the parent is the whole group's position. Brilliant. Would be great to see this in a tutorial! 😁😉
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
@@orchard800 It's around 6:24. I guess I was too quick. 😁
@orchard800
@orchard800 5 лет назад
@@CouchFerretmakesGames how the hell did I miss that? Thanks dude!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
@@orchard800 No problem! 😅
@rickmonarch4552
@rickmonarch4552 3 года назад
Hi CouchFerret! I have a little problem with the Y axis solution. Even though sprites of the tilemap are set to be bottom pivot, the tilemap has its own sorting order setting, that is true to the tilemap based on itself. This has ruined my life. Can you help?
@iPod71000
@iPod71000 5 лет назад
Thanks a lot, tried to solve the layer issue for 1 year.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
I'm glad it helped. :)
@solomonlyons10
@solomonlyons10 2 года назад
For some odd reason in play mode my character is above all of the layers. But when out of play mode and manually drag then it works. Could this be because of the animation?
@HY-oz2cb
@HY-oz2cb 4 года назад
Why do you create an empty game obj as a parent of archer and another empty game obj for the pillar?
@MrEllokjeld1
@MrEllokjeld1 4 года назад
Hey man!! Really nice tutorial! For some reason the grid doesn't change like yours when I use the grid component. I don't see any change and I have tried multiple times. I am currently using Unity 2019.2.12f1 Do you have any idea what the problem could be? Do I need to enable something to view the new grid? I have searched the web for answers but can't find anything Hope you can help me, Best Regards Axel
@TaarLps
@TaarLps 4 года назад
Did you find a solution?
@muireachgriogalach483
@muireachgriogalach483 2 года назад
that dude is like top down game tutorial mesiah
@peterkang1807
@peterkang1807 3 года назад
This is exactly what i needed! but I do have a problem, my person will pop up in the middle section of a tree model, but if i go a bit higher up, it'll go behind the branches/leaves area. Is there a way I can fix this?
@von_venediger
@von_venediger 3 года назад
Set the Pivot Point of all of your Sprites to the bottom of the Objects. Then go to the Sprite Renderer Components and set the Sprite Sort Point from Center to Pivot. That should fix it.
@chengc1049
@chengc1049 5 лет назад
Hi, Got a question regarding the grid size. if i am using 8*8 size tile map. how should i translate it to correct grid size?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Hey, then you have to set the Grid component's Cell Size to X: 0.08, Y: 0.08. On the game's current resolution, 0.01 Unity unit represents 1 pixel in the sprite sheet, but this may vary based on your game's resolution.
@febrikurniawan7276
@febrikurniawan7276 3 года назад
i use LRWP so i cant setting the camera. can someone solve it? Thanks
@hoangminhnguyen2191
@hoangminhnguyen2191 4 года назад
God like
@unitywithneo
@unitywithneo 2 года назад
Is it possible to add an offset?
@neemoh03
@neemoh03 5 лет назад
ang!
@fernandobarahona631
@fernandobarahona631 2 года назад
hello, i have a problem, i cant see the option sprite point sort
@ericsarason9099
@ericsarason9099 5 лет назад
Please don't stop making videos.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
I won't. I will upload today. :)
@ericsarason9099
@ericsarason9099 5 лет назад
@@CouchFerretmakesGames You're like TheNewBoston of game design.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
@@ericsarason9099 Wow, that's a huge compliment. Thanks! :)
@redinternet9893
@redinternet9893 Год назад
but there is not any pivot for each item in ilemap
@arcadan
@arcadan 4 года назад
Hahaha now I subscribed ! But here comes my advice, it would be great if u number your videos, so i would track them faster, and understand the building order, anyways your job is awesome, just what I'm looking for! Thxs !!
@paninozzo8534
@paninozzo8534 3 года назад
I dont find the sprite sort point option
@EnchikO
@EnchikO 2 года назад
i was using whole time my own script with sorting layer... sp.sortingOrder = ((int)transform.position.y * -1) + offset;
@rarechip
@rarechip 3 года назад
Why is it that I put the empty object with the sorting group inside the player but for other props i put them into the empty object with the sorting group?
@mickpurple
@mickpurple 3 года назад
its because player is a moving object which can be moved in game and if you put player inside the empty object the pivot alignment data will get lost and it will not work as intended
@ERBarratt
@ERBarratt 4 года назад
This does not work if you want the character to walk UNDER something - you still need to implement some sort of height sorting code.
@chaseconaway7257
@chaseconaway7257 3 года назад
Hey CouchFerret! Cool videos. I'm using them to learn unity. I am having a problem with the parent object not moving with the child object. I cannot figure out why. Like if I move the child object away from the origin the parent stays there and so my child object is not utilizing the sorting order. Any suggestions?
@chaseconaway7257
@chaseconaway7257 3 года назад
I got it, and I was just being silly
@adilife6080
@adilife6080 Год назад
@@chaseconaway7257 what did you do? I have the same problem
@chaseconaway7257
@chaseconaway7257 Год назад
@@adilife6080 lmao I'm not sure, I don't really remember. Probably something with the parent and child not being together in the component tree?
@adilife6080
@adilife6080 Год назад
@@chaseconaway7257 Wow. Thank you for responding so quickly. I found a solution
@ogcrackmama160
@ogcrackmama160 4 года назад
when i create a parent object for a pivot for the character, and move my character while playing the game, the parent object doesn't move with it
@krane1509
@krane1509 3 года назад
same issue here :c
@technoo4891
@technoo4891 3 года назад
I know this isnt the best way but, try making the parent.transform.position = your child.transform.position
@rickmonarch4552
@rickmonarch4552 3 года назад
Am te unity-ből élsz? :D Igen menő.
@wyxyr9495
@wyxyr9495 4 года назад
I cant seem to get the snapping to work in this new 2019.4.1f1 LTS version. Can someone help?
@Opfindeer
@Opfindeer 3 года назад
Unity menu, choose Edit > Grid and Snap Settings
@brandonluhrs
@brandonluhrs 5 лет назад
Hey bro, great videos!!!, can you send me the sprites that u use in these tutorials? iis only for test on my videogame
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Sure! ;)
@brandonluhrs
@brandonluhrs 5 лет назад
@@CouchFerretmakesGames bro i have a question, i cant set the Right trigger to fire. I configure the right shoulder 2 in rewire , but i didint works. I have to set a special configuration in the playercontroller script?, like getaxis instead of getbutton? or i have to set a parametre in the manager input of unity?
@brandonluhrs
@brandonluhrs 5 лет назад
how u set Fire in actions of rewire?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
@@brandonluhrs I have a Rewired action for the Fire and its type is Axis. Then I assigned it into the Right Shoulder 2, and I could just simply access the value by this line player.GetAxis("Fire"). Let me know if it still doesn't work. Cheers!
@YuriNoirProductions
@YuriNoirProductions 4 года назад
this doesnt seem to work with tilemaps though as there y axis is seen as per tilemap and not per tile
@Hyde233
@Hyde233 4 года назад
In the "tilemap renderer" component of your tilemap, set the mode to "individual" instead of "chunk." It'll make it per tile.
@YuriNoirProductions
@YuriNoirProductions 4 года назад
@@Hyde233 thanks for answering that. i was on a version where this wasn't available ._.
@simonstorf7080
@simonstorf7080 2 года назад
Hi are you still reading these? I have a problem. My sorting point is not moving with the sprite since the sprite is the child. I know for you the movement script is the parent, but I can't get it to work like that. How did you do it?
@bryancarrasquillo66
@bryancarrasquillo66 2 года назад
have you been able to solve this?
@simonstorf7080
@simonstorf7080 2 года назад
@@bryancarrasquillo66 unfortunately not
@bryancarrasquillo66
@bryancarrasquillo66 2 года назад
@@simonstorf7080 Changing the pívot while slicing is the only way.
@slightlydarkerblack
@slightlydarkerblack 5 лет назад
Hey this is amazing! Can you please tell me if this can be done with tile palette? I would like to design the map with lots of trees quickly so they align correctly. But when I use the palette brush they align on top of each other in a reversed way like in the image: imgur.com/7UTWeNO
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Hey, thanks! Have you tried setting the Mode to Individual in the Tilemap Renderer component? This may give you further info: docs.unity3d.com/Manual/Tilemap-Isometric-RenderModes.html
@CORKALOT
@CORKALOT 4 года назад
@@CouchFerretmakesGames I did this and it works but it makes each tile's axis position separate so my head pops through if my Y position moved onto the next tile. How do I resolve this?
@connor2094
@connor2094 5 лет назад
How to i create a bigger, longer and more complicated map?
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
We will get there don't worry. :) By the way, what do you have in mind on more complicated maps?
@connor2094
@connor2094 5 лет назад
@@CouchFerretmakesGames Well i want to make my game like Doom but with a maze map in same style like you have
@davidbingham8062
@davidbingham8062 5 лет назад
@@CouchFerretmakesGames any thoughts on doing this kind of sorting using an external level editor like Tiled?
@joaniepepin4968
@joaniepepin4968 5 лет назад
@@davidbingham8062 There are plenty of plugins for third party apps, but Unity has a tile editor. As of right now, it even supports isometric and hex maps, so it would be a lot simpler to just use Unity tools. :)
@davidbingham8062
@davidbingham8062 5 лет назад
@@joaniepepin4968 thanks for the response! I ended up going with Tiled (using Super Tiled2Unity) and i'm really happy with it.
@eggymedia190
@eggymedia190 3 года назад
Is this in unity 2d
@merwingavanes6488
@merwingavanes6488 4 года назад
Hello why does my child pivot not following the mother pivot
@spind6917
@spind6917 3 года назад
I dont know what I am doing wrong but your technique for sorting layer with créatine Child object dont work for me while running the game. Everything looks fine in the scene but when I run the game, my player goes in front of tiles and never back. Anyone have any idea??
@bryancarrasquillo66
@bryancarrasquillo66 2 года назад
have you been able to solve this?
@spind6917
@spind6917 2 года назад
@@bryancarrasquillo66 nope XD.
@dhcfhjjbb
@dhcfhjjbb 5 лет назад
Hello, I am a student who imitates your video. The other sprites were similar, so I somehow copied them, but I couldn't find the sprites for the pillars. Can I get them? I have no intention of selling it or using it for such a bad purpose. I'd appreciate it if I could. Thank you for reading the long story.
@CouchFerretmakesGames
@CouchFerretmakesGames 5 лет назад
Hey, sure! Send me an email and I'll send it back to you! You can find the address on the channel's About page.
@KenmoreChalfant
@KenmoreChalfant 4 года назад
Instead of adding another parent GameObject to offset the sprite you can edit it in the Sprite Editor and change the pivot: click the sprite then move the blue circle in the center down. In order to snap to pixels use the settings in the bottom right and change 'Pivot Unit Mode' to 'pixels'. Hit 'Apply' at the top to apply the new pivot.
@TC-ep5hy
@TC-ep5hy 4 года назад
Curious, why not use Unity's custom sorting layers instead of this Y-axis workaround? That way Unity handles it all for you, and if you change your mind on one aspect, you just shift that sorting layer, you don't have to go changing all the Y-axis around.
@anunderdog574
@anunderdog574 4 года назад
Sadly this is useless for Tilemaps :/
@Hyde233
@Hyde233 4 года назад
By default, the "tilemap renderer" component on tilemaps are set to "chunk," which treats the entire map as one large object. Change it to "individual," and that should probably fix your issue.
@cprn.
@cprn. 3 года назад
This isn't top down, it's isometric 3/4-ish. Doing actual top down is way simpler and saves tons of time.
Далее
Жидкие носки)))
00:19
Просмотров 551 тыс.
2000 vs 2100
00:15
Просмотров 16 тыс.
Technique for Creating Beautiful Level Design
11:48
Просмотров 822 тыс.
6 Years of Learning Game Development
9:02
Просмотров 2,3 млн
Pixel Art Tileset Tutorial (Top Down Pixel Art)
8:01
Просмотров 151 тыс.
What does a Game Engine actually do?
16:45
Просмотров 140 тыс.
Creating SMART enemies from scratch! | Devlog
5:40
Просмотров 275 тыс.
Architectural Designer Creates a Pixel Art Town
17:43
Просмотров 841 тыс.
How I made an Excellent Platformer
8:25
Просмотров 256 тыс.
Жидкие носки)))
00:19
Просмотров 551 тыс.