New account registration is temporarily disabled.

CENTERING ALGORITHM

Posts

Pages: 1
Having some problems coming up with a formula/code that can center a 640x640 picture on a 40x40 map (rm2k3) dependent on player position. In other words, the player can access the map from any square, so showing the picture would require that I first find out where the center of the map is in comparison to the player position. Any help would be greatly appreciated ^_^
The show picture event doesn't position a picture in relation to the character's position, only the screen's position. It also calculates the position based on the middle point of the image, meaning if you want a picture in the middle of the screen, the position will always be x=160, y=120. If this isn't what you're looking for, I'm having a hard time understanding what you need.
Don't worry about understanding, got help elsewhere. Thanks anyway :)
Pages: 1