Grid-based Movement using Tilemap and Input System - Unity Tutorial

preview_player
Показать описание
Make a grid-based movement character using tilemaps and the new input system.

ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓

📥 Get the Source Code 📥

🔗 Relevant Video Links 🔗
ᐅKenney's Assets
ᐅMaking a 2D Level in Unity with the Tile Palette
ᐅEASY and SMOOTH Camera Follow Unity Tutorial
ᐅHow to use Unity's NEW Input System

🤝 Support Me 🤝

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!

😎 Cool Unity Assets 😎

⏱️ Timestamps ⏱️
0:00 Intro
0:48 Tilemap Import Settings
2:38 Grid Setup
4:36 Grid Movement

💖💖THANK YOU TO ALL MY PATRONS 💖💖

❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
🎵 Music 🎵
Fretless by Kevin MacLeod
👍 Like and Subscribe! 👍

🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.

#unity3d #unitytutorial #unity2021
Рекомендации по теме
Комментарии
Автор

3:45 Instead of enabling the XYZ constraints on the Rigidbody2d you can simply change the, "Body Type" property to "Static" instead of "Dynamic".

JackKell
Автор

Been combing through various 'old' tutorials on grid movement before the new input system, which I didn't know existed before seeing your videos, and your tutorial has felt more instructive.

Don't know where you are in your YouTube journey, but don't change a thing about your informative and descriptive style. Got yourself a new, solid subscriber.

lambdalives
Автор

OH MY GOSH I HAVE NEVER FOUND A SOLID FIX TO THE LINES AND ALL OF A SUDDEN YOU GET IT DONE FIRST 5 MINUTES! I love you. Easily the best tutorial ever

jacobhuppertz
Автор

I have been struggling to find up to date tutorials. Finally found your channel after much googling around... I've subbed and plan to start consuming the backlog. :D

callindrill
Автор

Very very nice, although I think in this case(I haven't tested this) you don't need colliders on the col layer since you are already checking if there is a tile on that cell, and not checking if that cell has a collider.

doge
Автор

i aksed chatgpt for this info and it linked your channel
sutch a great find, because unlike most others, you explain it in a comprehensive yet not to slow manner.
i'll be using more of your tutorials!

brentgroen
Автор

I can't believe that it took me five videos just to find one that uses the Tilemaps namespace, thank you.

reshirom
Автор

I absolutely love your tutorials, and explanations! I have used your vids as reference many times so far on my journey! Just wanted to say a heartfelt thanks, and I wish i could subscribe more! Keep it up, and im very sure you will be up there with all the bigger unity content creators as soon as that yt algorithm catches on!

AlChmi_MvP
Автор

your content is simply amazing, love everything
please leave it online forever cuz this is gold

bro-rubro
Автор

I literally cried after it started working from following your tutorial. I tried other tutorials but they always tended to leave out certain details where you pretty much had to guess what they did in between.

neisef
Автор

Instead of "Freeze Position X, Y " and "Freeze Rotation Z" on
RigidBody 2D you can change "Body Type" from Dynamic to Static.

Ufol
Автор

Another excellent tutorial. Really helped me because I imported my maps from Tiled and didn't know how to put collisions on them so this really helped me out.

drjones
Автор

Awesome tutorial as I start out in this. Just a suggestion: When you include Tilemap in the title but dont actually go into (even if it's just a quick show) of actually creating/painting the map you use in the tutorial and instead refer to another video, it breaks the momentum a bit. Especially for someone new who starts this tutorial but then has to jump into another one in order to continue. Not a negative at all and since you already had the video, I can see why it made sense to link to that but if you could even briefly show something here, it would've helped with the flow.

Again, thanks for the amazing tutorial and it's really nice to see new/updated tutorials vs super old ones.

adarshsinha
Автор

I'm one year later but this is an awesome tutorial. I just have a silly question. Why do you need colliders if you block the player movement by code? is it because it would be useful further ?

Piroshi
Автор

Exactly what I was looking for - super easy to understand. Thanks!

pmgjwg
Автор

Oh my god thank you so much for this tutorial. I was struggling to get this to work for a while

starsquad
Автор

this is a great tutorial but im struggling to convert the code to work if i hold down a key to keep moving. any advice, the doucmentation confuses me.

BonkerzGamer
Автор

Very cool :O
I had no idea you could use the tilemap to move the character in that way!

tommallama
Автор

Can you make a video about Enemy and / or NPC grid based movement like the one on the player character? Thanks!!

juancanepa
Автор

Great job, and well explained. Thanks for your useful video. 10/10

PCB