# Enemy direction works but if we overlap

**URL:** <https://forum.makecode.com/t/enemy-direction-works-but-if-we-overlap/28960>\
**Category:** Help\
**Tags:** game\
**Created:** [May 26, 2024, 1:13am UTC](https://forum.makecode.com/t/enemy-direction-works-but-if-we-overlap/28960 "2024-05-26T01:13:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harmanuary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/harmanuary/32/21855_2.png) [@Harmanuary](https://forum.makecode.com/u/Harmanuary)\
**Post date:** [May 26, 2024, 1:13am UTC](https://forum.makecode.com/t/enemy-direction-works-but-if-we-overlap/28960/1 "2024-05-26T01:13:20Z")

</div>

So I’m making a sandbox survival platformer game, but when the system i use to flip the sprites to face the right direction works until i get to the same x position of the sprite

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

---

<div class="post-metadata">

**Author:** ![Harmanuary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/harmanuary/32/21855_2.png) [@Harmanuary](https://forum.makecode.com/u/Harmanuary)\
**Post date:** [May 26, 2024, 3:15pm UTC](https://forum.makecode.com/t/enemy-direction-works-but-if-we-overlap/28960/2 "2024-05-26T15:15:28Z")

</div>

also they get stuck on ledges i want them to jump to get over and they do but only if the player is close enough  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/8396beb405d61b9a412b6a71716d20f85962a371.png)

---

<div class="post-metadata">

**Author:** ![Harmanuary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/harmanuary/32/21855_2.png) [@Harmanuary](https://forum.makecode.com/u/Harmanuary)\
**Post date:** [May 26, 2024, 3:19pm UTC](https://forum.makecode.com/t/enemy-direction-works-but-if-we-overlap/28960/3 "2024-05-26T15:19:23Z")

</div>

same game and here is another issue:  
the game has so many of the same block and i want to know if there is a way to make it destroy only certain blocks with one big block instead of many individuals  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a5fdc14f4517a526c779b5e01001594a0fe2e88c.png)  
so instead of just the cloud it could break the dirt too, all in one block. There are ones that i want to break and drop custom items but they are few so i just need a simpler method for this idea
