Problems with walls

Having problems with walls. The enimies get through walls and it’s ruining the game here is the project:

1 Like

It’s because you have

There’s no reason to have it with a tilemap, so I deleted it.

here is your fixed code.

the issue is that they are spawning inside walls. delete these blocks and it will be fine:

1 Like

You don’t want sprites to spawn on top of walls, otherwise walls won’t apply to them until they exit the tiles with walls.
Also disable stay in screen for sprites, they can clip into walls and disobey the laws of physics.

2 Likes

Thank you.:innocent:

1 Like