I have some tilemaps where all tiles are 64×64 pixels.
I need to know the position of an tile if know the index in the tilemap.
How I can do this in C#?
I have some tilemaps where all tiles are 64×64 pixels. I need to know
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should help you to find the x and y coords of the tile:
numberOfTiles refers to the number of tiles in the x direction of the tile map, e.g. if the tile map was 16 tiles wide and 20 tiles high, numberOfTiles would be 16. to get the other 2 coords just add the tile height to tileY and the tile width to tileX.