Hi,
Have you already checked the platform collider? Maybe there is a gap which makes the enemy flip. Disabling and enabling the tilemap collider might help as Unity will recalculate the collider shape.
For furture reference, please share more information on your project. If you simply post a link, it could be mistaken for spam. In the worst case, you could get banned from this platform because the system might think that you are one of those spambots.
See also:
- Forum User Guides : How to mark a topic as solved
Sorry for just posting the link. My bad. Yeah I think the only way I can fix it is by using Raycast but that seems too complicated. Im gonna start from scratch with a different tile set.