Collision not working

Hello, I am making a game that uses tilemap and raycasting
when I turn it from tilemap to raycasting, it turns off the tile collision
does anyone know how to fix this

Link pliz

Changed the enemy designs (you dont have to keep it though) and i think i fixed it https://makecode.com/_5xoEM5PJi4do