#5 Easy Unity 2D Tilemap Collision with Tile Detection - Unity Top Down RPG

preview_player
Показать описание
Unity 2d Tilemap Collision and Colliders are the key of creating a great Unity Top Down RPG! We will learn how to create the Pokemon Ledge assets in Unity and write a script that will allow us to detect what type of Tile is infront of us.

-- Easy Unity 2D Tilemap Collision with Tile Detection - Unity Top Down RPG --

Choose your Membership Level and get exclusive benefits from the Channel!

Or buy me a fine cup of coffee to boost my motivation (need caffeine!)

Thank you for the support :D

Get the whole Unity Project with Assets included:

Enjoy the video and smash the like and subscribe buttons for more GameDev content!

-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
Contents:
00:00 HUUUGE but necessary Intro please watch
01:32 New stuff added
03:36 Fun with coding
06:11 Results!
08:09 Additional info and a Thank you
-----------------------------------------------------------------------------------------------------------
#savvugames #unitytilemaps #tilemapcolliders
All rights for the songs mentioned in the video go to the original artists of these tracks.
Рекомендации по теме
Комментарии
Автор

I am pretty sure you could do this without any code, first create a separate tilemap (call it ledges or whatever you like) then apply a tilemap collider (click on "uses composite") and also add a 2d composite collider (set the automatically added rigid body to kinematic and click used by effector on the composite collider), lastly add a platform effector 2d to the ledge tilemap, make sure "use one way" is clicked and change the rotation offset to 180. Now you can walk through it from the top, but not from the bottom.

BlackBearFTW_
Автор

Great Video and Tutorial! I hope to use this in my games and videos!

eddie.z
Автор

Wow! this is great keep up the good work.

dyuman
Автор

Very well explained. Love the pixel art #notificationsquad

mariaalogdianaki
Автор

if I stick an object when they touch during the game similar to the main character, how do I proceed to read the collider for the new object as well? (or be a single collider after touching)

stefanxd
Автор

#notificationsquad Here <3 keep up!

xXPanosXx
Автор

What is the background music you're using?

coreymiller
Автор

is it true that you are not using a collider on the character because you're using MoveTowards for the hero's movement so physics wont work? I had the same problem

DiegoTube
Автор

Write a comment and use #notificationsquad to get a shoutout in the next video (Be fast! The first hour counts)!🔔 Join Discord to get notified asap a video is up!

gamedevel
Автор

Ugh, I tried to combine this tutorial with another tutorial I was already following and now my character won't move at all. I don't know what I did wrong. Could someone please point me in the direction of how to debug?

voiceoreason
Автор

and basically what you're creating the colliders for? They are useless with your code.. am I wrong?

DiegoTube
Автор

Wow great job can u make a video about ai resource gathering

MOHAMEDHAMDY-qsfq
Автор

What if i move the caracter 2time or 3time couse when i did it my character can teleport through it.. answer please this is make me headace

hahainaja
Автор

You should not use Rigidbody's on static objects. In other words, the player is the only object that should have a Rigidbody!

CyberAngel
Автор

cool. but why don't just use rigid body and collider on player and on a tilemap?

olegrolik
Автор

Why you dont try make a slowmotion button ( or you cant do that ) #notificationsquad

richardgamer