How can I get column and row of sprite?

Please help me!

In the tilemap extension:
image
You can get a location of a sprite, and then get the columns and row of the location:

Thank you for your answer. I try to get location in this way, but the temp

value I get is null. Can you give me a test example? thank you very much.

1 Like

You need to set a tilemap before getting the location!

1 Like

Thank you very much for helping me solve this problem

1 Like