# Hey can someone help me with my game

**URL:** <https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766>\
**Category:** Help\
**Tags:** game\
**Created:** [March 20, 2025, 10:30pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766 "2025-03-20T22:30:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukiechu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lukiechu/32/17352_2.png) [@Lukiechu](https://forum.makecode.com/u/Lukiechu)\
**Post date:** [March 20, 2025, 10:30pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/1 "2025-03-20T22:30:01Z")

</div>

I’m trying to make a walkable path that appears only when you unlock something or obtain all of something does anyone know of some way to do this?

---

<div class="post-metadata">

**Author:** ![ShaneyBoi09](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shaneyboi09/32/18893_2.png) [@ShaneyBoi09](https://forum.makecode.com/u/ShaneyBoi09)\
**Post date:** [March 21, 2025, 4:25am UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/2 "2025-03-21T04:25:45Z")

</div>

nope. but i can help u tho

---

<div class="post-metadata">

**Author:** ![salami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salami/32/19773_2.png) [@salami](https://forum.makecode.com/u/salami)\
**Post date:** [March 21, 2025, 4:51am UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/3 "2025-03-21T04:51:47Z")

</div>

You could use a variable that only activates when it reaches a certain point, then run some code to have a path open.

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [March 21, 2025, 4:52am UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/4 "2025-03-21T04:52:54Z")

</div>

Make a block for your path and have a function that for element value of array of all (special path tile) locations. Set empty at (value) set wall off at (value)

---

<div class="post-metadata">

**Author:** ![CollapsedAxolotl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/collapsedaxolotl/32/19395_2.png) [@CollapsedAxolotl](https://forum.makecode.com/u/CollapsedAxolotl)\
**Post date:** [March 21, 2025, 10:02pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/5 "2025-03-21T22:02:38Z")

</div>

You can do something like the code below. It uses the tilemap utils extension (it’s there in the extensions menu by default). All it does is places a cover on the special tiles (which you can make less obvious than mine), and has a wall on the entrance of the path. When eating the apple, it sets the walls to be off in that area, and makes the cover transparent.

> **[unlockable Path](https://arcade.makecode.com/S37904-10086-54355-29463)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [March 21, 2025, 10:02pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/6 "2025-03-21T22:02:41Z")

</div>

Make duplicate tiles  
Use these to draw the path (invisible)  
When you want to reveal it, replace these tiles with a different visible onr

---

<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:** [March 21, 2025, 10:02pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/7 "2025-03-21T22:02:45Z")

</div>

This may be complicated but have a 1 pixel sprite spawn at the path start then see richards tilemap astar to get the path from point a to point b then you can add the on sprite kind player overlaps set \_\_\_\_ tile a location.

If this is confusing plz reach out.

---

<div class="post-metadata">

**Author:** ![Danny\_Devention](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danny_devention/32/30134_2.png) [@Danny\_Devention](https://forum.makecode.com/u/Danny_Devention)\
**Post date:** [March 21, 2025, 10:02pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/8 "2025-03-21T22:02:48Z")

</div>

I can help…with tilemaps not really sure about that tho  
Maybe…Set a variable to zero and when yo touch the thing and its zero it doesn’t let you pass but once you collect a key or something change the variable by 1 and then if you touch the door and the variable is one it lets you pass  
…I guess I did know ho to do that??

---

<div class="post-metadata">

**Author:** ![Lukiechu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lukiechu/32/17352_2.png) [@Lukiechu](https://forum.makecode.com/u/Lukiechu)\
**Post date:** [March 28, 2025, 5:16pm UTC](https://forum.makecode.com/t/hey-can-someone-help-me-with-my-game/34766/9 "2025-03-28T17:16:30Z")

</div>

thanks everyone for the help I’ll post the finished game when it’s done
