# An Issue With My Game Code, Really Simple but hard to access

**URL:** https://forum.makecode.com/t/an-issue-with-my-game-code-really-simple-but-hard-to-access/36976
**Category:** Help
**Created:** [May 29, 2025, 12:09am UTC](https://forum.makecode.com/t/an-issue-with-my-game-code-really-simple-but-hard-to-access/36976 "2025-05-29T00:09:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Riftbility](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/riftbility/32/22582_2.png) [@Riftbility](https://forum.makecode.com/u/Riftbility)
#### Post date: [May 29, 2025, 12:09am UTC](https://forum.makecode.com/t/an-issue-with-my-game-code-really-simple-but-hard-to-access/36976/1 "2025-05-29T00:09:27Z")

</div>

I’m making a new sequel to a previous game called Polygon Run 2, using a map from a “Decked Out Remix” game that I really liked. I used the map from the game but otherwise am coding Polygon Run 2 from scratch. The map has a tiny, seemenly unfixable problem with one of its tiles, and I can’t fix it because I can only see it in Explorer with read-only no edit mode. Here is the link to the project and the issue:

> **[Polygon Run 2 KEEP](https://arcade.makecode.com/S13888-23306-21746-89844)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here is the problem: Line 60: Cannot redeclare block-scoped variable ‘transparency16’.  
It is in the Explorer under category tilemap.g.ts  
You can view it in Javascript! Thanks in advance!

---

<div class="post-metadata">

### Author: ![ARandomGuyOnMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/arandomguyonmakecode/32/22983_2.png) [@ARandomGuyOnMakeCode](https://forum.makecode.com/u/ARandomGuyOnMakeCode)
#### Post date: [May 29, 2025, 5:15pm UTC](https://forum.makecode.com/t/an-issue-with-my-game-code-really-simple-but-hard-to-access/36976/2 "2025-05-29T17:15:14Z")

</div>

It is most likely a problem with an extension that you are using. That’s an error that usually comes up when using an extension with an asset built into it (I think). That’s what happened to me at least. You’re most likely going to have to find the broken one and remove it to fix the error.

---

<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: [May 29, 2025, 5:31pm UTC](https://forum.makecode.com/t/an-issue-with-my-game-code-really-simple-but-hard-to-access/36976/3 "2025-05-29T17:31:39Z")

</div>

This is an error with one of your extensions:

 ![IMG_8907](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/9/8966d84036d2b1aa668dc91f7725b471ebe4d63e.jpeg)

This specific error happens when you have more than one tilemap.g.ts files, which are the files that define tiles, and since the blank “transparency16” tile is always in this file, having more than one will create duplicates of those tiles, which doesn’t work.

Removing the “Polygon Run 2 (Remix Of Decked Out)”, _then_ removing the “.json” version of this file fixed the issue. When I convert back to blocks, I clicked “discard and go to blocks” but the issue is still fixed! You really shouldn’t do… whatever you did to share assets projects. I don’t know if there is a better way (I don’t know if copy/pasting blocks works with tilemaps) but the one you used doesn’t work.
