Is there a way to center an image on the screen regardless of the resolution? I know CSS has a way to do this on computer screens, but I'm not sure if RPG Maker can do this. Ideally, I'd like to not have to change the image rendering parameters if I need to make versions with different screen sizes.
Centering images by default
RPG Maker MV SupportYou can show the picture based on variables, so you can easily do the math with
Graphics.boxWidth and Graphics.boxHeight I would think.
Graphics.boxWidth and Graphics.boxHeight I would think.
Origin: Center with X = 0 and Y = 0 does that already.
Edit: this is wrong
Edit: this is wrong
This is not quite correct.
The origin is the anchor the image uses, not the screen. So with a center at 0, 0, you are putting the middle of the image at the top left corner of the screen.
Can you please provide an example? Where does this belong? Thanks.
Amazing, thanks! Your project and maps look really well-made, too.
You're welcome and thanks!
Original thread: https://forums.rpgmakerweb.com/threads/centering-images-by-default.183916/