# Var asks for tilemap size

**URL:** https://forum.makecode.com/t/var-asks-for-tilemap-size/26563
**Category:** Help
**Tags:** game
**Created:** [February 3, 2024, 1:10am UTC](https://forum.makecode.com/t/var-asks-for-tilemap-size/26563 "2024-02-03T01:10:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![VictorGamer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/victorgamer/32/12895_2.png) [@VictorGamer](https://forum.makecode.com/u/VictorGamer)
#### Post date: [February 3, 2024, 1:10am UTC](https://forum.makecode.com/t/var-asks-for-tilemap-size/26563/1 "2024-02-03T01:10:51Z")

</div>

I want to make a variable ask for a number and the number you choose will be the size of the map like the x/y.

![Screenshot_20240201-192339_Chrome](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/938776a85640e5f994f3a551c5156a30e7591748.jpeg)

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 5, 2024, 6:45pm UTC](https://forum.makecode.com/t/var-asks-for-tilemap-size/26563/2 "2024-02-05T18:45:31Z")

</div>

You can’t generate a tilemap with a dynamic size on runtime

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [February 5, 2024, 6:48pm UTC](https://forum.makecode.com/t/var-asks-for-tilemap-size/26563/3 "2024-02-05T18:48:36Z")

</div>

I was actually looking into this a while ago because I was making minesweeper. It would be nice to revisit that project if someone finds a way to do this. I only work in blocks but maybe there is an option for this when in Java or something. An extension for this or something would be nice! If you find something let me know!
