My question pertains to the memory addresses that handle where the character (or enemies, for that matter) appear on the screen, relative to the boundaries of the camera.
In two games that I've looked at (Disney's Aladdin and Earthworm Jim), these addresses are fairly easy to find, they're right near each other and they don't act strange or anything. I've been experimenting with drawing pixels at their positions with lua. The problem arose after I drew the pixel.
Basically, when the character is more or less centered in the screen, the position values read something like x = ~170 and y = ~400 (very similar values in both games). The lua script lines up the pixel perfectly with the x value, but using 400 for a y value for the pixel draws it wayyy off screen. After some messing around, it seems that this value of 400 is about 240 pixels off the mark (i.e. subtracting 240 from the y value and then using this new value for the pixel's y position gets it right about where it should be).
Basically, I'm trying to gain some intuition as to why the game does this and possible fixes for my script (so that I don't have to estimate). I'm not even sure where the pixel is supposed to end up (probably either the true center of the character or the bottom center). Again, either game has the same issues.
EDIT: So I was looking at that value of "about 240 pixels" and realized that it's pretty close to 255 or 0xFF, which makes more sense. Subtracting this value from the mentioned addresses puts the pixel almost right in the middle of the sprite. I'm probably on the right track here.