Turn Projectiles into Walls?

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