2D game walls

How would be the best way (preferably using c#) to create solid walls

Could you go into more detail please? Because it seems like you’d just need to use a box collider 2D

If you’re building your levels with tiles (each with a BoxCollider2D), I’d recommend raycasting.

With that said, a lot of people will recommend using one of the programs that you can purchase to make tiled stages (there is one called “Tiled”, I believe), so maybe look into that.

i have a 2d game and 2d blocks as walls but the character can go right through them

Have you attached 2D colliders to the tiles and the player?

1 Like