_zwb Posted February 3 Share Posted February 3 (edited) Is there a way to convert tile coords to entity.Transform coordinates? Edited March 10 by _zwb Link to comment Share on other sites More sharing options...
_zwb Posted March 10 Author Share Posted March 10 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now