# Overlapping sprites not working

**URL:** https://forum.makecode.com/t/overlapping-sprites-not-working/20328
**Category:** Help
**Created:** [May 31, 2023, 9:13pm UTC](https://forum.makecode.com/t/overlapping-sprites-not-working/20328 "2023-05-31T21:13:44Z")
**Posts on this page:** 5
**Page:** 1

<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: [May 31, 2023, 9:13pm UTC](https://forum.makecode.com/t/overlapping-sprites-not-working/20328/1 "2023-05-31T21:13:44Z")

</div>

Player overlaps with building = 0 blue  
Player not overlapping with building = 1 blue  
Building hitbox overlaps with road = 0 red  
Building hitbox not overlapping with road = 1 red

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e23e4bcedc9bb554a0b04831696ccae3c30cfb7c.png)  
These blocks don’t seem to be working for some reason even though in previous versions they did?

> **[Isometric City Builder 0-4](https://arcade.makecode.com/55811-07224-12268-19128)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

> **[Test](https://arcade.makecode.com/S34676-80224-04249-65628)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Simplified model of how its supposed to work  
If someone could help either explain the issue or even fix it that would be great but I’m doubtful anyone can understand my messy coding 😅

---

<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: [July 14, 2023, 5:03pm UTC](https://forum.makecode.com/t/overlapping-sprites-not-working/20328/2 "2023-07-14T17:03:21Z")

</div>

Sadly I don’t think I can continue working on the game because of this issue. A bigger issue is that makecode can’t really handle that many sprites so unless I figure out a different overlapping (with building) detector that doesn’t use sprites as hitboxes, the game will always have a fundamental limit on the number of buildings that can be placed down (about 15-20 before lag is very bad)

---

<div class="post-metadata">

### Author: ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)
#### Post date: [July 17, 2023, 4:14pm UTC](https://forum.makecode.com/t/overlapping-sprites-not-working/20328/3 "2023-07-17T16:14:28Z")

</div>

i made a isometric extension a while back the only thing is that it didn’t have movement BUT thanks to your game i figured out what the problem was and i fixed it  
[Isometric Extension](https://makecode.com/_Wa1KhWRdEHW7)  
while making the movement’s i realized i made a mistake THE Y AND Z ARE SWITCHED, NOOOOOOOOOOOOOOOOOO. when i tried to switch them the tileMap was all wrong and i couldn’t fix it, so ya were stuck with switch y and z

---

<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: [August 28, 2023, 4:39pm UTC](https://forum.makecode.com/t/overlapping-sprites-not-working/20328/4 "2023-08-28T16:39:17Z")

</div>

How will you implement jumping and collision?

---

<div class="post-metadata">

### Author: ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)
#### Post date: [September 11, 2023, 5:41pm UTC](https://forum.makecode.com/t/overlapping-sprites-not-working/20328/5 "2023-09-11T17:41:09Z")

</div>

SimCity 2000 is a comeback in Makecode
