Easy Tilemaps and Dynamic Auto Tiling - Unity 2D

preview_player
Показать описание
In this video we'll create a tilemap, add a collider (so we can use it as platforms or walls) and also look at creating dynamic tilemaps using Auto Tiling and Tile Rules!

By implementing tile rules, you can paint on your scene and it'll automatically place the correct sprites depending on the other sprites around it - it's really cool!

On my Patreon you can get the package which includes this Tilemap and Rule Tile - so you don't have to set it up yourself:
(My Patreon also includes all past and future code, packages and assets used on my channel!)

0:00 - Intro
0:14 - Package Setup
0:30 - Sprite Setup
1:02 - Tile Palette Setup
1:33 - Grid Tilemap + Tilemap Working!
1:58 - Auto Tiling!
2:07 - Rule Tile Setup
2:37 - Rule Tile Explanation
3:30 - Rule Tile into Palette + Working!
3:44 - Tilemap Colliders
4:27 - Layered Tilemaps
5:27 - Outro
Комментарии
Автор

In response to: "Why is the pixel per unit set to 15 instead of 16❓"
You can try it out with 16x16 - but with exact sizing with sprites this can cause tearing: you’ll see white lines flickering between your tiles!

To fix this I use the easy way of setting the pixel per unit to be one less, which means we have a bleed edge - an overflow for the sprites!

There are two other ways I know to fix this:

1. Manually edit your sprites to be bigger with a bleed overlay: so add a few extra padded pixels around all edges so it’s say 18x18, then you can use 16x16 in Unity safely! (Time consuming!)

2. Use a sprite atlas (found in the 2D menu) where you add an entry for each sprite in your tile map.

Since this is a quick and easy version, I did my lazy way which I use for small projects! In professional level production you can use one of the above methods.

GameCodeLibrary
Автор

Thank you so much! I’ve been looking all day for a tutorial for exactly what you showed.

Turtlez
Автор

You deserve a lot more subscribers.
Really good quality tutorial!

nTuKa
Автор

A couple days ago when I was looking in to this I would have loved this tutorial. Explain things so well.

Thank you.

LukeCreates
Автор

You make the best and the quickest tutorials and it helps a lot thankyou very much

SaintMemes
Автор

Just found your channel, its just like watching a video from brackeys, just as clear and entertaining, love it

abyssianknight
Автор

A fantastic Tutorial, nice and clear and easy to follow 👍

RadicalTrailers
Автор

wow! easier than I thought! thank you for this tutorial, love it! keep it up =D

itsbarrex
Автор

Good for a refresher on how to do it, People new to unity might struggle to follow along, Helped me so I like though

Mimi_py
Автор

On my Patreon you can get the package which includes this Tilemap and Rule Tile - so you don't have to set it up yourself:
(My Patreon also includes all past and future code, packages and assets used on my channel!)

GameCodeLibrary
Автор

How would you make a platform made from tileMap falling for example ? I have a script working for gameobjects I created ( Like a rectangle platform ), but I can't attach those to tile maps ?

scoop
Автор

Any experience with incorporating navmesh with tile mapping?

johnathansuda
Автор

How would you work with sliding colliders or slopes in Rule Tiles? I am unable to figure it out

mysticowlgames
Автор

can you make a tutorial on using LDtk or Tiled. I think that will improve workflow than using the unity tile map edit.

bluzenkk
Автор

The used by composite part does not appear for me... what is the reason?

kaviyy
Автор

useful tutorial thankyou! keep good work

AlwynCho
Автор

Why is the pixel per unit set to 15 instead of 16?

EpicHashTime
Автор

I am using slopes in the tile map and the collider is not pixel perfect . And the character looks like it's floating

dreamspheree
Автор

The moment I saw aseprite I immediately sub 😂

battelbad
Автор

❗❗❗😱📢 50% OFF LAUNCH SALE!! 😱👾❗❗❗
BUY THE COMPLETE GAME TEMPLATE NOW!!!

GameCodeLibrary