Making an Isometric Tilemap with Elevations and Colliders in UNITY

Поделиться
HTML-код
  • Опубликовано: 10 ноя 2024

Комментарии • 102

  • @jamesr6311
    @jamesr6311 3 года назад +24

    After watching so many other isometric tile map videos this is by far the best produced, most concise, and taught the ideas so well! Thank you!

    • @samyam
      @samyam  3 года назад +3

      Yay! Thank you 😄

    • @warningshotdesigns
      @warningshotdesigns 2 года назад

      @@samyam I agree with them completely. The only critique I have is talk a little slower, or give a little pause between steps. I had to rewind over and over lol

  • @sirnicoosokhan4056
    @sirnicoosokhan4056 4 года назад +33

    Best explanation that I have found on RUclips to correct my tile map problems. Thanks a million.

  • @danielgilbert8338
    @danielgilbert8338 3 года назад +5

    Have been trying to figure out collision in an isometric environment for a while and this is the video that finally got it to make sense. Thanks! Keep up the great work

  • @adventuresinTW
    @adventuresinTW 3 года назад +3

    This is one of the best step by step tutorials put together. Thanks for doing this.

    • @samyam
      @samyam  3 года назад +1

      Thank you! 😄

  • @rag544
    @rag544 2 года назад +1

    I have never done a thing with tiles before but now i feel enlightened. Thank you so much for this :)

  • @hacbe1894
    @hacbe1894 Год назад

    This is great our professor has recommended this to us! Thank you very much!

    • @samyam
      @samyam  Год назад

      That’s awesome to hear thanks!!

  • @danenriq3451
    @danenriq3451 3 года назад

    the unsung hero of isometric tutorials, you deserve more subs honestly

    • @samyam
      @samyam  3 года назад +1

      Thanks :)

  • @charatjeeravipoolvarn464
    @charatjeeravipoolvarn464 2 года назад

    Explanation is so good. Clear and understand. Thank you.

  • @envi5532
    @envi5532 Год назад

    best isometric tutorial out there thank you

  • @Sohodollie
    @Sohodollie 2 года назад

    What a great video, seriously. I've watched a couple of tutorials but this one really explains and shows everything perfectly. Can't wait to add movement in the next tut!

    • @samyam
      @samyam  2 года назад +1

      🙌 Thank you!

  • @psychicmrs6410
    @psychicmrs6410 3 года назад +1

    your isometric videos have been so helpful! Thank you so much

  • @NickChecan
    @NickChecan 11 месяцев назад

    Your tutorials are great! That is exactly what I was looking for.

    • @samyam
      @samyam  11 месяцев назад

      Thanks!

  • @Oliver_Koppert
    @Oliver_Koppert 4 года назад

    Thanks, Samyam!
    Once again your video is much clearer & explains the tools far better than a whole bunch of other videos.
    I'ma have to stop doing general searches for tutorials & check your content first before wasting hours trawling through generic, unhelpful poop!
    Thank you!

  • @GustOfLuck
    @GustOfLuck 3 года назад

    BEST TUTORIAL EVER, im making a game thx to u

  • @robertkillerrodrigues
    @robertkillerrodrigues 3 года назад

    Thank you, I loved this tutorial tomorrow I will gonna test this, I watched so much videos to see how to resolve this problem and nobody was talking about it, tank you so much, now i can stat my beautiful project of MMORPG 2.5d

    • @samyam
      @samyam  3 года назад

      Good luck!

  • @dotaportalvideo
    @dotaportalvideo 4 года назад +2

    Really cool video on a topic I wish there were more videos on. Found this link on reddit.

    • @samyam
      @samyam  4 года назад

      Thanks! Soon I'll be uploading a video on Mouse Movement for Isometric maps :)
      Feel free to join my Discord if you have any questions: discord.gg/B9bjMxj

  • @ArtBySabin
    @ArtBySabin 3 года назад

    Great channel and content! I just downloaded these tiles, can't wait to play!

    • @samyam
      @samyam  3 года назад

      Thanks!! 😄

  • @reneandersen7382
    @reneandersen7382 4 года назад

    Really a good explanation on the tilemap!

  • @DanTheMan-rr3yg
    @DanTheMan-rr3yg 2 года назад +1

    FYI for everyone, you can actually set the rigidbody to a "static" body type instead of the default of dynamic and setting the gravity to 0 and freezing the coordinates. Unless you want to be able to move tiles during gameplay of course

  • @Nico-wf7wg
    @Nico-wf7wg 2 года назад

    What a nice tutorial, thanks so much!

  • @raccoonduck5406
    @raccoonduck5406 3 года назад

    Perfect tutorial! Thanks a billion.

  • @uluulgen3878
    @uluulgen3878 4 года назад +1

    sabahtan beri bunu ariyordum cok tesekkur ederim.

  • @katanafamily5064
    @katanafamily5064 3 года назад +10

    Great video so far, but I'm confused. I know that the Unity engine is constantly changing (as a noob, I at least have THAT much figured out). She keeps saying "X as Y" but I keep seeing "Z as Y". Are these interchangeable and should I assume that older tutorials will show an X instead of a Z?

    • @samyam
      @samyam  3 года назад +8

      No I just get confused when I see Z and sometimes say X 😂

    • @katanafamily5064
      @katanafamily5064 3 года назад

      @@samyam ah! Ok thank you! Great stuff!

  • @bsteven93
    @bsteven93 3 года назад

    Great tutorial. I was having a issue with my tiles generating as huge blocks you showed me what I need to change to fix that. Thank you very much!

    • @samyam
      @samyam  3 года назад

      Awesome! 👏

    • @EsportsPoptart
      @EsportsPoptart 2 года назад +1

      You need to adjust the "Pixels Per Unit" Size on the textures from 100 -> 1024 on each sprite you want to add to the tile pallet.

  • @rs_2305
    @rs_2305 3 года назад

    Nicely explained thanks

  • @coderious4568
    @coderious4568 4 года назад

    Great video! It's bookmarked for next time I work with tilemaps

  • @senorspoons6416
    @senorspoons6416 2 года назад

    Thank you so much!

  • @playonce4186
    @playonce4186 3 года назад +1

    I was looking at how to get those tiles at the perfect square and with the anchor set to 0 it worked thanks!

  • @hwikkik
    @hwikkik 2 года назад

    Great Video

  • @ecomkevv
    @ecomkevv 4 года назад +1

    DUUUUUUUUUUUUDE Huge thanks for making this, had a really hard time figuring this shit out!

  • @바밤바-j6s
    @바밤바-j6s Год назад

    thanks for video! :)

  • @shagman1779
    @shagman1779 3 года назад +3

    Thanks a lot! Is there any chance you could make a video showcasing how to code grid-based movement on an isometric map such as this? As in, moving cell-by-cell like in a tactical turn-based game.

    • @samyam
      @samyam  3 года назад +2

      Great idea! I'll put it on my list for a possible future video. In the meanwhile this video I made on grid movement might help, you might just have to change the direction to move in
      ruclips.net/video/YnwOoxtgZQI/видео.html

  • @edjemonkeys4896
    @edjemonkeys4896 3 года назад

    Thanks!

  • @vinipossatto9586
    @vinipossatto9586 4 года назад

    nice video I appreciate your work

  • @Kromahtique
    @Kromahtique 3 года назад

    Thank you!

  • @SlipperyVeins
    @SlipperyVeins Год назад

    I got a question: let's say the grid is XZY, meaning it's horizontal along Z axis. I'm trying to apply Tilemap Collider to it and since the collider is 2D, it exists only in X and Y. Is there a way to rotate 2D collider or the only solution is to apply a different (3D) collider?

  • @haachamachama7
    @haachamachama7 2 года назад

    Just a thought, why make a separate "collider" tile and keep the water on the first tileset instead of just making the water a separate tileset with separate colliders?

  • @ghriankashtagelenski6577
    @ghriankashtagelenski6577 4 года назад +1

    I have tried making such a concept a while ago, my main problem was sorting the sprite of the character and tiles when the character was in front or behind an elevated tile, or even under an elevated tile such as a bridge. I managed to make it work with some scripting but the collisions were very funky as a result. Did you address this issue, or is your character unable to stand behind a crate (lower body of the character hidden by the crate) ?

    • @samyam
      @samyam  4 года назад

      Heres a great article about the concept (using sorting layers depending on position): www.google.com/amp/s/breadcrumbsinteractive.com/two-unity-tricks-isometric-games/amp/
      Lets know if that helps!

    • @jordyncampbell1176
      @jordyncampbell1176 Год назад

      @@samyam Do you still remember what that article was or know where it was moved to by any chance?? (Or do you have another article or a video on it?) :)

  • @SophiefromMars
    @SophiefromMars 3 года назад

    I've followed all the instructions here and on Unity's official tutorial and I still can't get collision to work...
    It'll turn out to be something silly and small that I've missed. It always is...

    • @samyam
      @samyam  3 года назад +2

      Make sure you followed all the instructions on the video carefully, it can be a bit convoluted with isometric games
      I have have this next video which might help:
      Mouse Click Movement in Isometric Tilemap - Unity Tutorial
      ruclips.net/video/b0AQg5ZTpac/видео.html

  • @retroxify
    @retroxify 2 года назад

    You keep saying X as Y. I don't think you know what that means. XD
    I'm kidding of course. Fantastic tutorial, thanks so much!

  • @rafaelache8650
    @rafaelache8650 5 месяцев назад

    good video thanks

  • @DarkScreen-vh7wy
    @DarkScreen-vh7wy 10 месяцев назад

    Boa noite! Você tem algum tutorial ensinando a criar um rpg isometrico pela Unity?

  • @MythozTheMyth
    @MythozTheMyth 4 года назад +1

    interesting video. is it possible to disable the tilemap renderer completely for the collison layer or does this cause issues?

    • @samyam
      @samyam  4 года назад +1

      That also works in this case!

  • @random_precision_software
    @random_precision_software 2 года назад

    Have you a video on how to convert texture to a atlas?

    • @samyam
      @samyam  2 года назад

      No I do not think I do unfortunately
      learn.unity.com/tutorial/introduction-to-the-sprite-atlas

  • @ilyasyildiz6091
    @ilyasyildiz6091 4 года назад

    Bro Thanks for video

  • @akaaidan5720
    @akaaidan5720 4 года назад

    Woah nice vid

  • @pacmanrocks94
    @pacmanrocks94 2 года назад

    hi, hopefully you still read new comments :). when adding the 'lake', the collider is based on the sprite instead of the square grid, so the collider is actually going "above" (or "below") depending on the y offset. When you move the character around, you can't get close to the lake on certain sides. Do you know how I can fix this?

    • @pedepatopimenta
      @pedepatopimenta 2 года назад

      Hey dude. What helped me was to go on the assets folder (inside Unity editor), create -> 2d -> sprites -> isometric diamond
      Then I use that new sprite on the collision layer, only the top of the lake will have a collider. I did have to set the "Tile Anchor" back to X=0.5 and Y=0.5
      It may be kinda weird if you are using the same tileset she is, but maybe it works out for ya.

  • @basiccomponents
    @basiccomponents 3 года назад

    thanks a lot for this tutorial! Only issue I'm having is that around 11:44 when I create the tilemap collider, nothing happens, do you have an idea of why this could be happening or how could I fix this? Maybe I need to set a Physics 2D Material?

    • @samyam
      @samyam  3 года назад

      Are you setting the collider on the actual tilemap object? And does the component actually appear on the object or it doesn’t let you add the collider? If it doesn’t let you add the collider maybe you have an error in your game. If it does, then make sure you are selecting the object in the hierarchy to see the green outline, and make sure you have gizmos turned on for the scene view (to see the collider outlines)

    • @basiccomponents
      @basiccomponents 3 года назад

      @@samyam it lets me add the collider and the rigidbody 2d as in your video, but the green lines don't actually appear and when I run the game my character falls through the tiles

    • @samyam
      @samyam  3 года назад

      Make sure you freeze the position and rotation in the rigidbody 2d if the tilemap. Also, how are you moving the player? Rigidbody, character controller, etc?
      Maybe these suggestions also help
      answers.unity.com/questions/1786050/tilemap-collider-2d-not-working.html

    • @basiccomponents
      @basiccomponents 3 года назад

      @@samyam I tried to change the collider type to Grid, it creates a collider, but my character just sits on the border, not in the middle of the tile. I still haven't implemented the movement of the character.

    • @samyam
      @samyam  3 года назад +1

      @@basiccomponents Hard to tell without seeing what's going on, if you'd like you can join our Discord and post in the #help chat images or a small video of the issue
      discord.gg/bvQEGk7

  • @dinax51
    @dinax51 4 года назад

    Cool, thanks, however in my case adding the water in the ground layer and selecting Mode to Individual the whole ground looks weird. I have checked previous steps and everything seems to be correct :-(

    • @samyam
      @samyam  4 года назад

      What do you mean by weird? Feel free to join my Discord and post in the help channel with the issue to get a better idea: discord.gg/SwCKB3Q

  • @Mystical-TEDDY_
    @Mystical-TEDDY_ 3 года назад

    Okay so If i have a player and each different elevation is a different sorting layer do I need to just not do that and change the Z values or keep the sorting layers

    • @samyam
      @samyam  3 года назад

      If you'd like to use the Z value to sort in the correct order, you need to have a Z as Y Tilemap, else you can use the normal isometric tilemap and make sure you have the correct sorting layers.

  • @CanalDojogames
    @CanalDojogames 3 года назад

    Thank you so much, solved a lot of my problems, honestly it is weird how it works with Upper and lower tile.... kinda make me confused..so i will need to work with layer method instead...
    Whoooah! when i turned the custom axis and y=1 it really works how i wished.... god bless you!
    So how you add all into a single atlas and unity keep them as it is? because re import will cause it to remove from some tilemaps,right?

    • @samyam
      @samyam  3 года назад +1

      You can just add all of the different tiles you are using into the atlas, Unity will just issue draw calls from the atlas instead to save on performance. Here is the workflow for using a Sprite Atlas docs.unity3d.com/Manual/SpriteAtlasWorkflow.html

    • @CanalDojogames
      @CanalDojogames 3 года назад

      @@samyam thank you very much

  • @DragonByte79
    @DragonByte79 3 года назад

    I asked me, why do the other grids have a collider as well? Do not only have the collider grid have a collider, so we can walk on?

    • @samyam
      @samyam  3 года назад

      We want to know where the player can walk, so we place colliders on the non walkable areas to query whether we can walk in that direction as well

    • @DragonByte79
      @DragonByte79 3 года назад

      @@samyam that makes sense. I tried it but had a problem accessing my ground tiles. My player was outside of the grid and tried to move on it and it collides with it. So that was the reason I asked. After I placed my player onto the grid, it works.
      I have a random tilemap generation so my player was a bit placed off :)
      Thank you for your awesome video.

  • @youtuberyoutuber2495
    @youtuberyoutuber2495 3 года назад

    can you make a tutorial on how to make a pseudo-isometric map like on SimCity 3000?

    • @samyam
      @samyam  3 года назад

      Is that like 3D made to look like an isometric 2D game?

    • @youtuberyoutuber2495
      @youtuberyoutuber2495 3 года назад

      @@samyam Im not sure :D but there's plenty of simcity 3000 images on google

    • @samyam
      @samyam  3 года назад +1

      Yeah it actually seems it’s fully 2D but looks 3D (2.5D). Thanks! I’ll keep it in mind

  • @christopherdoiron4294
    @christopherdoiron4294 3 года назад

    why would I chose this over a 3d game and just move the camera up? serious question

    • @samyam
      @samyam  3 года назад

      It depends on the style of the game. If you have a 3D game you’d need 3D assets and not simple sprites.

    • @christopherdoiron4294
      @christopherdoiron4294 3 года назад

      ​@@samyam Do you have an example of a 3d game that has top view? I feel like Torchlight 2 and even Diablo 3 are 2D. (2.5D maybe, but not 3D)

  • @ArcWeltraumpert
    @ArcWeltraumpert 7 месяцев назад

    it's any tutorial like this using godot?

    • @samyam
      @samyam  7 месяцев назад

      No I don’t have any Godot tutorials

  • @TheAmeer3881
    @TheAmeer3881 4 года назад

    Smart gal

  • @voidling2632
    @voidling2632 Год назад

    set rigidbody rather to static, no reason to have a dynamic one for a tilemap.

  • @mohokhachai
    @mohokhachai 10 месяцев назад

    Scene management

  • @mohokhachai
    @mohokhachai 10 месяцев назад

    Dungeon architect asset