# Trying to find width of tilemap level

**URL:** https://forum.makecode.com/t/trying-to-find-width-of-tilemap-level/1134
**Category:** Arcade
**Created:** [January 30, 2020, 3:27am UTC](https://forum.makecode.com/t/trying-to-find-width-of-tilemap-level/1134 "2020-01-30T03:27:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 3, 2020, 10:32am UTC](https://forum.makecode.com/t/trying-to-find-width-of-tilemap-level/1134/2 "2020-10-03T10:32:26Z")

</div>

@p3nguinc4g3

How dit you set the tileMapData into a variable? I am also curious to find out what the width and height is. There is a function, TileMapData.isOutsideMap(x, y), but I am not sure how to use it. Instead of defining a tile as the random location the sprite starts at, I want to place the sprite at the bottom and middle of the tilemap. Maybe the width and height of a tilemap works differently than the location of a tile.

Maybe if you repost this issue under Arcade | Help, someone else might help.

[https://forum.makecode.com/c/Share-your-Arcade-projects-here/help/14](https://forum.makecode.com/c/Share-your-Arcade-projects-here/help/14)

---

_[View the full topic](https://forum.makecode.com/t/trying-to-find-width-of-tilemap-level/1134)._
