# What would be the best way to create a Map?

**URL:** <https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782>\
**Category:** Help\
**Tags:** game\
**Created:** [February 11, 2025, 1:06pm UTC](https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782 "2025-02-11T13:06:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADM\_F](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/adm_f/32/19808_2.png) [@ADM\_F](https://forum.makecode.com/u/ADM_F)\
**Post date:** [February 11, 2025, 1:06pm UTC](https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782/1 "2025-02-11T13:06:00Z")

</div>

I’ve been scratching my head trying to figure out how i should create my overworld map  
i’ve thought about using a matrix of strings for each point I’ve tried tilemaps but im just unsure whats the best way to do it

Something like this  
 ![Knight Knight's Map: Building Secret Paths - Yacht Club Games](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQnbqklF0-puh2mWFwYuQkqdhKQFBHiIyuQuA&s)  
where you can walk around and unlock things on the map

---

<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:** [February 11, 2025, 1:10pm UTC](https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782/2 "2025-02-11T13:10:37Z")

</div>

It may not go well with your game but seed generation would be AWESOME!

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [February 11, 2025, 6:12pm UTC](https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782/3 "2025-02-11T18:12:23Z")

</div>

My advice?  
Make it open, give the player the ability to walk around, you can hide more secrets this way.

---

<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 12, 2025, 6:53am UTC](https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782/4 "2025-02-12T06:53:36Z")

</div>

Personally, I would use a cursor-sprite approach. Then you could have an array of points representing each level and then check if the sprite is within a certain distance of each point. If you make the points in the same order as the levels, then you can just use the position of the point in the array to tell which level it represents! IMO, that’s the easiest approach. If you wanted to be fancy, you could have the sprite move along a set path, but that would be very annoying to code, especially if the paths don’t go in a direct line to the next point.

---

<div class="post-metadata">

**Author:** ![ADM\_F](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/adm_f/32/19808_2.png) [@ADM\_F](https://forum.makecode.com/u/ADM_F)\
**Post date:** [February 12, 2025, 6:16pm UTC](https://forum.makecode.com/t/what-would-be-the-best-way-to-create-a-map/33782/5 "2025-02-12T18:16:10Z")

</div>

that’s a pretty good idea but i really want the grid movement

And like any good question right after i ask i find the solution

![download (8)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/c/ece73bc09a81d53f997719ea9ca9b0f55785d66f.gif)

> **How i Did it**
>
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/1/51d6df86c60140e6073e0ef590e486c4b643d1ec.png)  
> I’m going to use a Array of locations to make each location do something but that’s how i did the movement
