# Enemy Defeat

**URL:** <https://forum.makecode.com/t/enemy-defeat/3177>\
**Category:** Help\
**Created:** [August 20, 2020, 6:15pm UTC](https://forum.makecode.com/t/enemy-defeat/3177 "2020-08-20T18:15:20Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 8, 2020, 9:26pm UTC](https://forum.makecode.com/t/enemy-defeat/3177/15 "2020-10-08T21:26:30Z")

</div>

@richard

I hope I can add to this post, as I am having a similar issue with sprites and auto destroy. Within a tilemap, I have the set the cars to auto destroy themselves.

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

When any car hits a wall, in the code I create a sprite and want to set to the other side (for now I put it somewhere in the middle).

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

The issue I am having is, the blue cars to the left of screen stay there. When a move the player to the right, the camera scrolls right, and when I go back that cars are gone.

> **[Frogging Hard](https://arcade.makecode.com/82643-76982-64792-85479)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Can someone help me out?

---

_[View the full topic](https://forum.makecode.com/t/enemy-defeat/3177)._
