# Free roam game

**URL:** <https://forum.makecode.com/t/free-roam-game/31677>\
**Category:** Help\
**Tags:** game\
**Created:** [November 13, 2024, 2:57pm UTC](https://forum.makecode.com/t/free-roam-game/31677 "2024-11-13T14:57:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingkk0310](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kingkk0310/32/17981_2.png) [@kingkk0310](https://forum.makecode.com/u/kingkk0310)\
**Post date:** [November 13, 2024, 2:57pm UTC](https://forum.makecode.com/t/free-roam-game/31677/1 "2024-11-13T14:57:01Z")

</div>

i made some code for movement and am using a tilemap, how do i change the tilemap when i go to a specific tile?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/3/13ccdda9ccf4aa75d8ae45ac21eadea201e84b8c.png)  
and how do i make it toggleable(when the tilemap changes how do i make the opposite side go back to the first tilemap)

---

<div class="post-metadata">

**Author:** ![Don](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/don/32/17989_2.png) [@Don](https://forum.makecode.com/u/Don)\
**Post date:** [November 13, 2024, 6:46pm UTC](https://forum.makecode.com/t/free-roam-game/31677/2 "2024-11-13T18:46:30Z")

</div>

Here are some blocks you might want to consider

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/b/dbf17f48f975ddd12dca28033a55225c984ed5ee.png)  
Use the on block to detect when a player steps on a transporter tile. Choose the transport tile.  
Set the tilemap you want to switch to.  
Put your sprite next to the tile that takes you back by finding the right column and row.

You don’t have to use the same transporter tile on both tilemaps. If you want them to look alike then make a duplicate. Using the actual same tile on both tilemaps makes the logic much harder to code and you don’t need to do that.

---

<div class="post-metadata">

**Author:** ![codecat1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codecat1/32/29634_2.png) [@codecat1](https://forum.makecode.com/u/codecat1)\
**Post date:** [November 14, 2024, 5:32pm UTC](https://forum.makecode.com/t/free-roam-game/31677/3 "2024-11-14T17:32:32Z")

</div>

Can you link your game, please? It looks cool!

---

<div class="post-metadata">

**Author:** ![kingkk0310](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kingkk0310/32/17981_2.png) [@kingkk0310](https://forum.makecode.com/u/kingkk0310)\
**Post date:** [November 15, 2024, 7:36pm UTC](https://forum.makecode.com/t/free-roam-game/31677/4 "2024-11-15T19:36:36Z")

</div>

[here is the game so far](https://arcade.makecode.com/S35227-42255-88924-37094)
