# Color-coded Tilemap and normal Tilemap?

**URL:** <https://forum.makecode.com/t/color-coded-tilemap-and-normal-tilemap/3413>\
**Category:** Help\
**Created:** [September 11, 2020, 2:53am UTC](https://forum.makecode.com/t/color-coded-tilemap-and-normal-tilemap/3413 "2020-09-11T02:53:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimehunter](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@slimehunter](https://forum.makecode.com/u/slimehunter)\
**Post date:** [September 11, 2020, 2:53am UTC](https://forum.makecode.com/t/color-coded-tilemap-and-normal-tilemap/3413/1 "2020-09-11T02:53:21Z")

</div>

Is there a way to use both the color-coded and the normal tilemap?

I’m trying to make a game where the enemies are placed in certain colored locations on the tilemap, but I want to be able to use more detailed tiles instead of having to limit myself to one tile per color (16 maximum tiles, less for enemy locations).

---

<div class="post-metadata">

**Author:** ![shakao](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shakao/32/113_2.png) [@shakao](https://forum.makecode.com/u/shakao)\
**Post date:** [September 11, 2020, 4:25pm UTC](https://forum.makecode.com/t/color-coded-tilemap-and-normal-tilemap/3413/2 "2020-09-11T16:25:42Z")

</div>

You can’t use both at the same time, but you can place enemies/objects on specific locations using the normal tilemap! Essentially, you create a custom tile for your enemy, loop over each one, and manually place the sprite on top. Then you can replace the tile with another one to hide it:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5391a98bc4dd0e854e3a427b7a52fd7f3d624cf4.png)

Example code: [https://makecode.com/\_WJeAz4ew1LJY](https://makecode.com/_WJeAz4ew1LJY)

---

<div class="post-metadata">

**Author:** ![slimehunter](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@slimehunter](https://forum.makecode.com/u/slimehunter)\
**Post date:** [September 11, 2020, 7:59pm UTC](https://forum.makecode.com/t/color-coded-tilemap-and-normal-tilemap/3413/3 "2020-09-11T19:59:40Z")

</div>

Aha! Thank you, that helps a lot.
