Board Thread:Questions and Answers/@comment-24454571-20140517053531/@comment-24454571-20140523185101

I'm not quite understanding that last part; first, it seems to me like the pixel is 6x6 because of the +5's, and damn, I really don't get what's going on with those four IF statements. I see that it's checking the player location within the indices of the MAP Array, but I'm not relating to how those values are relating to the ... 'characters'?

So, taking the PLX & PLY starting locations and rounding them, 48/8 =  6, 32/8 = 4; (48+5)/8 = 6.625, 32/8 = 4; 48/8 =  6, (32+5)/8 = 4.625; (48+5)/8 = 6.625, (32+5)/8 = 4.625, I'm not seeing the significance of these values. It says IF MAP(those values) THEN [update Player location]. To understand this, I think that I'll need to see in what conditions this applies and in which conditions is doesn't comply - which should relate to 1's & 0's from the DATA, but from what I can tell this isn't checking for those values at all, but only looking at the players location which shouldn't have an effect on the characters movement.

Another way to put it, in the context of your explanation, is that I don't get how any of those equations will return a 0 or a 1. Is it like a coding whimsy? I recall once reading a program that used 1%1000 to 1000%1000 but when the number increased to 1001%1000 it returned the value of 1, and 1002%1000 returned 2 and so on, for some odd reason although acquiring the remainder of a number higher than what you're dividing was impossible.