At 9/20/09 07:03 PM, Glaiel-Gamer wrote:
a prize to who can tell me what I just wrote and how it's useful :P
Seems like you're taking the the flag values from the tiles to the left, right, above and below the tile at (i, j) then use them to generate an integer: 0 <= n >= 15. Each of these integers represents a certain combination of tile values around (i, j). Then you add 1 since that's what a movieclip's first frame index is, and use that movieclip b to somehow show this visually.
Something like that, it's late over here, k?!
Could be useful for some Mine Sweeper styled puzzle game, or even more likely a level editor (like zrb said) for which yo use this function to see if nearby tiles are occupied or something.
It could however not be useful in a code meant to be readable...