# Storing a Tile in Arcade!

**URL:** <https://forum.makecode.com/t/storing-a-tile-in-arcade/20023>\
**Category:** Help\
**Tags:** game\
**Created:** [May 16, 2023, 6:43pm UTC](https://forum.makecode.com/t/storing-a-tile-in-arcade/20023 "2023-05-16T18:43:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cheeseofthehotdog](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Cheeseofthehotdog](https://forum.makecode.com/u/Cheeseofthehotdog)\
**Post date:** [May 16, 2023, 6:43pm UTC](https://forum.makecode.com/t/storing-a-tile-in-arcade/20023/1 "2023-05-16T18:43:31Z")

</div>

I’m working on making an RPG style game! However, I’ve come across a problem. I want to store the tile that my character is facing at all times, then call that and compare it to the tile in front of them when they press A. However, I can’t find the right way to store the tile. I’m trying to put the column in one variable and the row in another, but that doesn’t work for some reason! What can I do?

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [May 16, 2023, 11:31pm UTC](https://forum.makecode.com/t/storing-a-tile-in-arcade/20023/2 "2023-05-16T23:31:36Z")

</div>

Hmm, your idea should work fine! Could you show or link the code?

---

<div class="post-metadata">

**Author:** ![Cheeseofthehotdog](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Cheeseofthehotdog](https://forum.makecode.com/u/Cheeseofthehotdog)\
**Post date:** [May 17, 2023, 4:40pm UTC](https://forum.makecode.com/t/storing-a-tile-in-arcade/20023/3 "2023-05-17T16:40:53Z")

</div>

![Screen Shot 2023-05-16 at 10.38.28 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/f3ebc9640da9d424e4139a340ff644174e6ae449.png)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [May 17, 2023, 4:49pm UTC](https://forum.makecode.com/t/storing-a-tile-in-arcade/20023/4 "2023-05-17T16:49:06Z")

</div>

Ah, I see! To get the sprite’s column, you need to first find its location.  
So instead of having the oval part be " ((Mysprite6) Column) " it would be ((Tilemap location of (Mysprite6)) column) " the tilemap location should be in the scene menu!

---

<div class="post-metadata">

**Author:** ![Cheeseofthehotdog](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Cheeseofthehotdog](https://forum.makecode.com/u/Cheeseofthehotdog)\
**Post date:** [May 17, 2023, 6:15pm UTC](https://forum.makecode.com/t/storing-a-tile-in-arcade/20023/5 "2023-05-17T18:15:17Z")

</div>

Oh. Thank you so much!
