Creating Tilemaps For Your 2D Game in Unity 2021 - Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024

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

  • @VelvaryGames
    @VelvaryGames  2 ปีที่แล้ว +8

    New to Tilemaps? Check out my playlist for great beginner resources - "Start with your 2D Game": th-cam.com/play/PLJBcv4t1EiSysOLQnh2AwqmD9QTg9Qlx-.html
    Do you also want a moveable player on your map? Use Unitys New Input System: th-cam.com/video/xrLlZ1mHCTA/w-d-xo.html

  • @denkozlov4220
    @denkozlov4220 2 ปีที่แล้ว

    Thank you dear, unfortunately lots of unity official study guides are outdated, gladly this vid came out to be very useful

  • @belisariussmith9095
    @belisariussmith9095 3 ปีที่แล้ว +51

    I love this, thank you so much. This is the most concise, efficient, and intelligent explanation I've been able to find. Your voice is also very soothing, while your diction is articulate, so its very pleasing to listen to and understand as well.

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +7

      Oh thank you for your kind words. It's really nice to hear and I'm glad the video helped you :)

  • @thelongestleg
    @thelongestleg 2 ปีที่แล้ว

    Thankyou so much this helped alot i was stuck on this for awhile and your video was very helpful!!!

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

    I Hate unity for this. Your video was the best instructions i've seen, thanks. But how can Unity take about 30 clicks to place some green 2d blocks on the ground and think this is normal. It is 2024 and this is something like in the early 2000's I think i'll look for something with a better user interface or give up.

  • @StickyLabDev
    @StickyLabDev 3 ปีที่แล้ว

    failed ,,, when drag the sprite to tilemaps palete
    EndLayoutGroup: BeginLayoutGroup must be called first.
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

  • @johntitor7966
    @johntitor7966 ปีที่แล้ว

    your voice is pretty cute

  • @BomberTVx
    @BomberTVx 3 ปีที่แล้ว +10

    This Channel will go big, I know it

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +1

      Haha well, I hope for it, thank you :)

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

    It won't allow me to drag my sprite (or the sprites individually) into the Tile Palette. Any idea why that might be happening? I created a rectangular palette in Tile Palette, but it just doesn't allow me to drag and drop.

  • @joachimschwarz4081
    @joachimschwarz4081 3 ปีที่แล้ว +24

    This tutorial felt like a breath of fresh air. To the point and exactly what I was looking for. Du erklärst wirklich großartig. :)

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      That sounds great, danke :)

  • @Burnnskii_Gaming
    @Burnnskii_Gaming 2 ปีที่แล้ว +20

    These videos are hidden gems. first one I have found on the subject on TH-cam with updated versions and that is crystal clear. these combined with the information from the older videos from the brackeys channel is all one could ask for. thanks!

  • @powpowcherrybomb
    @powpowcherrybomb 2 ปีที่แล้ว +1

    hi, how are you scrolling the values in the inspector 0:56

  • @playerdude2
    @playerdude2 3 ปีที่แล้ว +14

    One of the most beginner friendly tutorials. Straight to the point yet doesnt leave out anything. Thank you so much.

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      Thank you, happy it helped you :)

  • @TheHeadlessMario
    @TheHeadlessMario ปีที่แล้ว

    my default brush draws 2 grids at once how do i make so it draws only one
    edit: nvm i fixed it idk how

  • @ms1-Alex
    @ms1-Alex 3 วันที่ผ่านมา

    My player gets suck into the colliders

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

    Thank you a lot for this video! Very quick and helpful!

  • @gone117-r8g
    @gone117-r8g 3 ปีที่แล้ว +1

    thank you so much. I can't believe you don't have more subscribers.

  • @jimkincaidz
    @jimkincaidz 3 ปีที่แล้ว +4

    This is a really well done tutorial.
    Thank you, subscribed!
    Would you be able to do one on an in-game tilemap editor, like a level editor?

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +2

      Thank you :)
      Yes, actually this is a great idea. I was planning on doing some more tutorials about tilemaps and already have some code lying around with this functionality. So this should come in one of the next episodes

    • @jimkincaidz
      @jimkincaidz 3 ปีที่แล้ว

      @@VelvaryGames That's excellent! Thank you for considering it and for the quick response :)
      Do you have a Patreon or anywhere you can direct me to help support?

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +1

      @@jimkincaidz Oh wow, that's really generous of you, nice to hear :) Currently not, but I was planning on doing a Patreon and a Discord Server. Seems like I should focus more on this :D

  • @nasatars
    @nasatars 2 ปีที่แล้ว

    I keep getting the error “ArgumentNullException: Value cannot be null” idk what I’m doing wrong anyone got any ideas?

  • @kirbyfan3197
    @kirbyfan3197 ปีที่แล้ว

    If I try to slice my tilemap, thousands of small tiles are created. All the pixels of my 32x32 sprite will be made into a tile. does someone know how to fix this?

  • @ibihuss6407
    @ibihuss6407 ปีที่แล้ว

    i have her a problem. i create a tilemap called ground and secand tilemap called "kisten" what is your "top". When i put a square on the tilemap "kisten" like you in a green area than i cant see the square anymore.... can you tell me what i am doing wrong? it should look like at 4:36 but it doesnt :/

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

    5:20 is not working for my character movement in the tutorial where we move the character oddly it will not collide with tiles, need help.

  • @realaezz
    @realaezz 3 ปีที่แล้ว +1

    NICE VIDEO! This helped me a lot! Thank you so much

  • @Archeia
    @Archeia 3 ปีที่แล้ว +1

    Thank you very much!

  • @FarazKhanDev
    @FarazKhanDev 2 ปีที่แล้ว +1

    Thank you. Very nicely explained. Subscribed :)

  • @Story.Teller.5124
    @Story.Teller.5124 2 หลายเดือนก่อน

    This video is amazing. 10 out of 10

  • @shield476
    @shield476 ปีที่แล้ว

    it worked but the tiles are super small do you know how to fix this?

  • @rawkth5996
    @rawkth5996 2 ปีที่แล้ว

    The Drop tile/sprite/sprite texture does not pop up for me AT ALL.

  • @AlexFSTR
    @AlexFSTR 2 ปีที่แล้ว

    Hello, I have a tile animation, but I would like to place it in a tilemap, I would like to do all this in code.
    But tilemap has only one function which is SetTile() which asks me for a TileBase, so the question, how can I convert my TileAnimatorData to TileBase?

  • @Phosfit
    @Phosfit 2 ปีที่แล้ว

    I've gotta restart again. I'm sm better at navigating a text file than Unity

  • @MidnightSkyGD
    @MidnightSkyGD 2 ปีที่แล้ว +2

    This was the most straightforward tutorial for Tilemaps that I have found. I have been looking for a little while tonight. Thank you for this. Thank you so much!

    • @VelvaryGames
      @VelvaryGames  2 ปีที่แล้ว +1

      Thank you for your nice words. I'm glad it helped you :)

  • @volkano6991
    @volkano6991 ปีที่แล้ว

    I TRIED EVERYTHING BUT THE TILES DONT GO INTO THE TILE PALLET UGHHH

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

    thank you! so much! i now can make my game!

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

    Thanks for providing information without wasting any time. Seriously, most tutorials these days waste 5 minutes without actually showing anything, and they don't even explain stuff that clearly. (or sometimes way too clearly, which wastes even more time) We need more channels like this.

  • @thespeedygangsters3982
    @thespeedygangsters3982 ปีที่แล้ว

    It will not let me click the create folder button what do I do

  • @alopmemes1964
    @alopmemes1964 3 ปีที่แล้ว +1

    Really helpful video! Thank you very much :D Before this video i duplicated my gameobjects over and over again. This lagged out my game very much!

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +1

      Oh then I'm happy you found this video. I think this is not only better for your performance but also for your mental health :D

  • @VitorHugo-xo2ki
    @VitorHugo-xo2ki 3 ปีที่แล้ว +1

    THANK YOU FOR THE VIDEO : ) , i was really in doubt about something, now i'm not lol

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +1

      I think that sounds like a good result, glad it helped :)

  • @VanDeliar
    @VanDeliar 3 ปีที่แล้ว +1

    Hello, thank you for this nice Tutorial. Just started again with Unity..and oh my gosh..unity changed so much in this years. Hast du geplant noch mehrere Tutorials zu machen ? Würde mich freuen darüber. Hab gerade im Video gesehen, es gibt nun eine Perfect Pixel Camera :o. Greets Van~

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +1

      Haha, great to hear. Yeah, I also had a couple of years paused between using Unity, was very confusing.
      There will definitely be more videos, currently I just need a bit more time for making those. Danke dir ;)

  • @alpi7411
    @alpi7411 3 ปีที่แล้ว +1

    3:00 how can I rotate for example the log to be vertical?
    Amazing helpfull video btw! Easy thumbs up!

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      Thank you for your comment :)
      Yeah, rotating is possible when you have selected a tile and want to draw. Unfortunately I just know the key for my qwertz-keyboard, there it's the ß, the key to the right of zero. I think it should be somewhere near there for other layouts. I hope this somehow helps :)

    • @alpi7411
      @alpi7411 3 ปีที่แล้ว

      @@VelvaryGames Thank you!

  • @Rayangoselink
    @Rayangoselink 3 ปีที่แล้ว

    Ich sah das du deutsch bist wegen der sprache im folder und wollte sagen das das ein gutes video ist aber es jetzt eigentum des deutschen reiches ist

  • @5785691
    @5785691 3 ปีที่แล้ว +1

    Subbed!! this videos was just what i needed, perhaps you can talk about animations sometimes, keep it going!!

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      Thank you, glad it helped you :)
      Yeah, animations are definitely on the plan but not scheduled currently.

  • @daisyr3447
    @daisyr3447 2 ปีที่แล้ว

    What am I doing wrong if it won’t let me create a folder to save it in? It just keeps saving create new pallet

    • @VelvaryGames
      @VelvaryGames  2 ปีที่แล้ว

      You need to create the folder manually. Either inside this saving dialog of windows or directly in unity

  • @Zubairnawazgameartist4040
    @Zubairnawazgameartist4040 2 วันที่ผ่านมา

    good one🍹

  • @ZoltBolts
    @ZoltBolts 3 ปีที่แล้ว +1

    This is the one i was looking for thanks

  • @Ziplock9000
    @Ziplock9000 ปีที่แล้ว

    6:25 The Tilemap Collider 2D does not have a 'used by composite" option in 2023.1.0.. What should I use instead?

  • @frigus7245
    @frigus7245 2 ปีที่แล้ว

    two words for you ..... thank you

  • @chilyphilly
    @chilyphilly 2 ปีที่แล้ว

    god damn thats a good tutorial.

  • @bellywash6684
    @bellywash6684 2 ปีที่แล้ว +1

    4:30 Quick tip for people where the different layers aren't working. Put the tilemap renderer mode to Individual instead of Chunk.

    • @VelvaryGames
      @VelvaryGames  2 ปีที่แล้ว +1

      Oh thank you for pointing this out. I also stumbled across this lately on an isometric map. Did you have those problems on a rectangular tilemap?

    • @bellywash6684
      @bellywash6684 2 ปีที่แล้ว

      @@VelvaryGames Ye on the regutangular, I was trying to work with different layers but the tiles just wouldn't show up.

    • @VelvaryGames
      @VelvaryGames  2 ปีที่แล้ว

      @@bellywash6684 Ha interesting. I don't know how it works in the background, so if it depends on the used tiles or rather if Unity might have changed something.
      But that's what comments are for, so I am glad you told us about and it surely will help someone else as well :)

  • @WildandWackyVideos
    @WildandWackyVideos 3 ปีที่แล้ว +1

    Thanks for this, the other videos I found looked outdated:) Keep it up!

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      Thank you :) Glad to hear this.

  • @fernandoguerrerobonilla2019
    @fernandoguerrerobonilla2019 2 ปีที่แล้ว

    buen video me zuscrivoi

  • @AravGamedev
    @AravGamedev 2 ปีที่แล้ว

    Reply best tutorial 👌

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

    u save my life bro

  • @sprite9849
    @sprite9849 ปีที่แล้ว

    Your tutorials are an absolute gold mine. Thak you very, very much!

  • @marcellodelfiore1361
    @marcellodelfiore1361 ปีที่แล้ว

    THANK YOU SO MUCH :D

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

    Fantastic video, straight to the point and so so helpful. Thank you so much!

  • @MemeMaker-re7vu
    @MemeMaker-re7vu 2 ปีที่แล้ว

    Thank you very much for this video. I am encountering a problem that after watching this video and reading the comments as well as other videos on tilemaps I still can't find the fix for...
    When I click a tile from the palette on the right to draw in the scene, it instead draws a smaller version of the tile. Its around 30% smaller than what the actual tile size should be and shows the background all around it. It's as if I had set a gap between all the tiles to begin with, but that is not the case. The tiles within the tile palette (on the right of my screen) are accurately sized with the tiles/squares, but when I move any of them to the scene its like they shrink.
    edit: after more video searching and messing around, changing the tilesheet image "Pixels Per Unit" in 'Inspector' from 100 to 53 brought it as close as possible to properly filling up the square. However this feels like a terrible solution.
    The problem may root from the size of the character I'm using? I set the grid cell size to .3 by .3 so it would properly work with my player/character model.
    Fixed: Made sure any images were set to pixel per unit to 16. Manually scaled my character/player till it looked right (which ended up being .5 x .5 x 1).

  • @Andrew_Videos
    @Andrew_Videos ปีที่แล้ว

    ty 🙂

  • @Ivan_Helsing
    @Ivan_Helsing 3 ปีที่แล้ว +1

    Clear and proper explanation, thank you a lot!

  • @etherealhatred
    @etherealhatred 2 ปีที่แล้ว

    Really helpful and very well explained, no tangents, straight to the point, loud and clear
    Aside from that, you kinda sound as if you were about to cry, you ok buddy?

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

    very well made tutorial. helping me with my university final year capstone project. thank you for your work!

  • @alopmemes1964
    @alopmemes1964 3 ปีที่แล้ว +2

    Can you also animate tiles in a tilemap?

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      Yes, check out my video about Auto Tiling, this explains the setup and has a short part of where I show how you can do this.

    • @alopmemes1964
      @alopmemes1964 3 ปีที่แล้ว

      @@VelvaryGames Oh nice! Thank youuu :D Because i want to animate a floating river but i thought you cannot animate in tilemaps xD

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      @@alopmemes1964 Yeah, it's simple but a great feature. Thank you for pointing out that a separate tutorial is a good idea, so people can find it easier :)

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

    This video is very enlightening to me, thank you Vevary!!

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

    Thak you this video helped a lot I've never messed with 2d games before and had no idea what to do lol

  • @Moetehero02
    @Moetehero02 2 ปีที่แล้ว

    good tutorial but it shows the same as all the others. I now know how to use a tilemap collider 2D for the usual purposes but what about when you build an island and can't fall into the water? I then have a tilemap collider that stops me a long way from the water because 2 tilemaps overlap and the collider for the water sticks out onto the island. How do you do something like that?

  • @auroth6805
    @auroth6805 ปีที่แล้ว

    Question, how do I make it so every single sprite has a colider properly?

  • @HasAudomMoy-Angel-Neko-X
    @HasAudomMoy-Angel-Neko-X 3 ปีที่แล้ว

    Thanks, so I won't need to install some useless tool!

  • @airanu_7640
    @airanu_7640 ปีที่แล้ว

    eres dios, gracias

  • @ІванБожевільний
    @ІванБожевільний 3 ปีที่แล้ว +1

    Great! It's what I looking for!

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      I'm happy you like it, thank you :)

  • @SupernovaOneFourOne
    @SupernovaOneFourOne 2 ปีที่แล้ว +1

    Incredible and to-the-point tutorial thank you

  • @TheRealKaiProton
    @TheRealKaiProton ปีที่แล้ว

    Fantastic Video, for some reason I always forget how to create the tile maps,
    in this case Im coming back to Ol'Unit from messing with godot for a year or two, and again... couldnt remember, glad I found this channel, clear instruction, not digressing into other areas, and explained in a way that makes sense, eg. Always check the Active tile map.
    I remember always screwing that up, in previous projects.

  • @MJZA93
    @MJZA93 ปีที่แล้ว

    If you keep painting over your palette check the unclick the edit button in the Tile Palette.

  • @iannoah2195
    @iannoah2195 3 ปีที่แล้ว

    Unity seems to freeze when I slice my tileset, what am I doing wrong?

  • @Toxicx-nf1to
    @Toxicx-nf1to ปีที่แล้ว

    Thank you I actually needed this I swear that most videos are super outdated

  • @hercules5546
    @hercules5546 ปีที่แล้ว

    i rarely subscribe a channel after the first video i watch of it, but this tutorial was so good, i cant lose your channel :D

  • @cyberpunkgirl7907
    @cyberpunkgirl7907 2 ปีที่แล้ว +1

    We love it! 🤙

  • @TotallylegitYH
    @TotallylegitYH ปีที่แล้ว

    you are amazing

  • @nebtro
    @nebtro 2 ปีที่แล้ว

    i cant find any tutorial that tells me how to add the actual package please can u help

  • @c0nt3ntoyt72
    @c0nt3ntoyt72 3 ปีที่แล้ว +1

    How do I put my “player” above the map?

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว

      Just change the "Order in Layer" number inside the "Sprite Renderer" component of your player object to a higher number. In the video I set the "Ground" layer to a negative number and the "Top" one stays at 0, so setting the player order to 1 would be enough to make it visible.
      I hope this helps you :)

    • @c0nt3ntoyt72
      @c0nt3ntoyt72 3 ปีที่แล้ว

      Thanks

  • @TSMSnation
    @TSMSnation 2 ปีที่แล้ว

    so what do you do at 0:34 when the grid overlay for the tiles doesn't appear?

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

    cute voice

  • @ricardocorreia1431
    @ricardocorreia1431 2 ปีที่แล้ว

    thanks dear

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

    yay

  • @sirjimbe9758
    @sirjimbe9758 2 ปีที่แล้ว

    Preciate it

  • @kakac0der266
    @kakac0der266 3 ปีที่แล้ว

    your voice is great,fall in evol with your voice

  • @Harounu_35Dz
    @Harounu_35Dz 2 ปีที่แล้ว

    thanks bro

  • @hlxccx3030
    @hlxccx3030 ปีที่แล้ว

    unclear

  • @silverwolves1877
    @silverwolves1877 3 ปีที่แล้ว

    During the sprite editor part the image is not showing up

  • @sigge.g2193
    @sigge.g2193 ปีที่แล้ว

    Thanks!

  • @Maxolt
    @Maxolt ปีที่แล้ว

    Thank's

  • @36aryansharma83
    @36aryansharma83 3 ปีที่แล้ว

    Can anyone please help me? I have imported all of the tiles and all but I can not paint with the brush. Please help
    Edit: I got it. Thank you anyways And it was such a good tutorial. U just earned a subscriber and a like :)

    • @oreosmith4679
      @oreosmith4679 3 ปีที่แล้ว

      HOW DID YOU DO IT PLEASE HELP

  • @nothiiiiiiiing
    @nothiiiiiiiing ปีที่แล้ว

    swiss?

  • @carokotrihatmojo
    @carokotrihatmojo ปีที่แล้ว

    🙂😁😁👍👍👍👍👍👍👍

  • @Frvzzer
    @Frvzzer 2 ปีที่แล้ว

    kannst du deutsch

  • @elostolol0197
    @elostolol0197 2 ปีที่แล้ว

    awesome

  • @serhumana_
    @serhumana_ ปีที่แล้ว

    Thank you soo much, you helped me a lot!

  • @chrisheld8463
    @chrisheld8463 ปีที่แล้ว

    Excellent video. Simple, informative and easy to follow. :)

  • @Tigris_DK
    @Tigris_DK 2 ปีที่แล้ว

    Really good tutorial, i'm just getting back to unity after a few years break, and hear the tilemap function was good instead of the Tiled program, so i found you, you now have a new sub :D

  • @voloceiraptor_da5926
    @voloceiraptor_da5926 2 ปีที่แล้ว

    thank you so mutch your very underated

  • @cakeman3835
    @cakeman3835 3 ปีที่แล้ว

    amazing tutorial, but when ever i hit play, the top layer just disepears, anyone knows how to fix this?

    • @VelvaryGames
      @VelvaryGames  3 ปีที่แล้ว +1

      Sorry for the late response. Did you change the Rigidbody type to "Static"? If it is still a dynamic RB it fall down due to gravity.

  • @TheLearningExpedition00
    @TheLearningExpedition00 3 ปีที่แล้ว

    awesome