Board Thread:Questions and Answers/@comment-1490123-20140731020450

So, for the platformer with different lanes the player can stand on, I was hoping to save some space and put all the tile detection stuff into one array, and use &B and AND to differentiate the different lanes.

So it would be that, &B100110 is a lane 3 floor. The first bit is just there since 001 just comes out as 1, the next 3 being lanes, and the last 2 being floor, and wall, respectively...

However I don't seem to be able to use this for cliff edges, since, if I were only to declare a tile as a floor, the player    would be able to walk through it, if they're on a lower level, and making it a wall would mean the player would collide with it if they're on a lower lane.

Any suggestions? 