Im pretty sure im not the first one to suggest this, and there are a lot of games that have semi-solids like contra, and most other platformer 2d gamers, basically when you go on top of the semisolid it is solid, but on any other side, you can go through it.
Please give your opinions