How can I get row and column from tile's location?

When I use “on sprite of kind (some kind of sprite) overlaps (some kind of tile) at location” block, then my callback function receives a parameter “location”. How can I get row number and column number when I use blocks? I know that in Javascript I can do it with such code:

scene.onOverlapTile(SpriteKind.Player, sprites.builtin.brick, function (sprite, location) {
    console.log(location.row)
})

but how can I do it with blocks?

In the tilemaps extension, there are blocks to get a row and column out of a tile location block.

1 Like

I found it, it works - thank you.

2 Likes