# Why does this not work!

**URL:** <https://forum.makecode.com/t/why-does-this-not-work/30146>\
**Category:** Forum Feedback\
**Created:** [August 14, 2024, 5:38pm UTC](https://forum.makecode.com/t/why-does-this-not-work/30146 "2024-08-14T17:38:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 14, 2024, 5:38pm UTC](https://forum.makecode.com/t/why-does-this-not-work/30146/1 "2024-08-14T17:38:40Z")

</div>

I have had this problem/question for a while…  
This should not be happening, there is a Sprite but somehow there is no column for the sprite. There is a tile map as well. HOW DOES ROW NOT EXIST ON THE SPRITE?!?!?!  
ITS ON THE 5TH ROW AND 2ND COLUMN I CAN CLEARLY SEE IT! (that was just an example)

Like WHY DOES THIS NOT WORK?!?!?!?  
I think its a problem with the website rather than my code. (maybe I’m wrong) Makecode devs PLZ fix this.

 ![Screenshot 2024-08-14 6.30.01 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/b/8b60f5614d2457e13944554b7b4cc1099ff6acb7.png)

PROPERTY ROE EXISTS ON THE TYPE SPRITE BUT IT DOESN’T WORK!  
Here is the link ----\> [LINK](https://arcade.makecode.com/S39343-17594-57314-42848)

(Sorry for all the caps I just though it would be more fun to read  
[/quote]

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [August 14, 2024, 5:44pm UTC](https://forum.makecode.com/t/why-does-this-not-work/30146/2 "2024-08-14T17:44:17Z")

</div>

I think the important bit to know here is that a sprite can exist _on_ a tilemap, but is not part of one. For example, if you change tilemaps, you could change from a tilemap with 8x8 tiles to one with 16x16 tiles; in that case, the ‘column’ the sprite is on would change.

In this case the fix is rather easy though; you have to call something to get the _current_ location the sprite is on. This can be done with the `tilemap location of [mySprite]` block:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/e/2e68855698c31ac230c20fd5d0d93ce18609cb22.png)

it’s a bit more code to write, but it clears up the issue:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/0/40eb25aaa2f3259c498ca747091e3c9e0285fa7b.png)

(if having such long blocks annoys you, you can always store the current location in a temporary variable right before using it, so it’s not recalculated every time)

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 15, 2024, 3:49am UTC](https://forum.makecode.com/t/why-does-this-not-work/30146/3 "2024-08-15T03:49:39Z")

</div>

Thanks I allways knew you could tilemap location block but I didn’t know about the tilemap col row block. Thanks!
