Jump to content

[Solved]How does Map:GetTileCoordsAtPoint work?


Recommended Posts

I found out how it works: Map:GetSize returns the size of map in term of tiles, you multiply that number by 4 to get the map size in terms of wall length. Note that tile coords' origin is different from the regular Transform component, it starts at (- map size in tiles *2, -map size in tiles *2) instead of (0, 0).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...