# Can't input tile location into function

**URL:** <https://forum.makecode.com/t/cant-input-tile-location-into-function/28316>\
**Category:** Help\
**Created:** [April 18, 2024, 11:38pm UTC](https://forum.makecode.com/t/cant-input-tile-location-into-function/28316 "2024-04-18T23:38:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [April 18, 2024, 11:38pm UTC](https://forum.makecode.com/t/cant-input-tile-location-into-function/28316/1 "2024-04-18T23:38:19Z")

</div>

I cannot input a tile location into a function and I really need to do that for my water physics project. Can anyone help with this? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [April 18, 2024, 11:39pm UTC](https://forum.makecode.com/t/cant-input-tile-location-into-function/28316/2 "2024-04-18T23:39:21Z")

</div>

this is something that I am constantly annoyed by but unfortunately there is no way to do this. the easiest workaround is to just pass the column and row from the location in as two number arguments, which is tedious but works.

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [April 19, 2024, 4:39pm UTC](https://forum.makecode.com/t/cant-input-tile-location-into-function/28316/3 "2024-04-19T16:39:15Z")

</div>

I’m already doing that but thanks!

---

<div class="post-metadata">

**Author:** ![soren\_lorenson](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soren\_lorenson](https://forum.makecode.com/u/soren_lorenson)\
**Post date:** [April 19, 2024, 4:45pm UTC](https://forum.makecode.com/t/cant-input-tile-location-into-function/28316/4 "2024-04-19T16:45:38Z")

</div>

or you could go into Javascript and use code that I will paste below

```auto
namespace functionsP2{
     export function example (loc: Location) {
          stuffstuffstuff();
     }
}

```
