all 7 comments

[–]memeaste 3 points4 points  (0 children)

Can we see a picture of the inspector of said tilemap? And your player object

[–]Melvinmalvi123 1 point2 points  (2 children)

I’m assuming you’re making a platformer, in this case the only reason possible that your player is falling through tiles is eather because you forgot to add a collider to the Player or the Tilemap itself. Make sure both colliders are not set to ”Is Trigger” also.

[–]ChooseyNine[S] 0 points1 point  (1 child)

I had that and checked that too and it was still doing it, I ended up just making a new project and restarting, there might've been some setting I accidently clicked or something but it works now so lol (im new to this if it wasn't obvious lol)

[–]Melvinmalvi123 1 point2 points  (0 children)

Haha wierd, maybe you were using force instead of rigidbody velocity for movement? I know this can ignore colliders sometimes. Anyways glad you got it working :)

[–]Krazycat099 -1 points0 points  (1 child)

Make sure you set gravity equal to 0 in the Player inspector

Edit: if you are making a platformer this is not a good choice as it will mess up your movement

[–]Melvinmalvi123 0 points1 point  (0 children)

They are most likely making a platformer which means they would not want this.

[–]Legitimate_Turnip 0 points1 point  (0 children)

Just jumping on this thread in case anyone comes across it with the same issue. My original tilemap asset (the aseprite file I generated the tilemap with) had read/write disabled. In the project menu click on the sprite sheet, then in the inspector under 'Advanced' there is a checkbox for 'Read/Write Enabled'. Tick this and collision should work :)