# Turn Projectiles into Walls?

**URL:** <https://forum.makecode.com/t/turn-projectiles-into-walls/10729>\
**Category:** Help\
**Created:** [November 2, 2021, 3:42pm UTC](https://forum.makecode.com/t/turn-projectiles-into-walls/10729 "2021-11-02T15:42:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryharwood](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@ryharwood](https://forum.makecode.com/u/ryharwood)\
**Post date:** [November 2, 2021, 3:42pm UTC](https://forum.makecode.com/t/turn-projectiles-into-walls/10729/1 "2021-11-02T15:42:46Z")

</div>

I want to create a game where I can drop “bricks” to trap the enemy using projectiles. I’ve used “on overlap” to change the enemy’s velocity by x(-1) and it creates a bounce, but often gets stuck and then warps the enemy across the screen. Is there a way to make the projectiles have the same properties as walls?

Here’s my current code [https://makecode.com/\_Dw4ht2WyKEsg](https://makecode.com/_Dw4ht2WyKEsg)
