RPG Maker Forums

Hi all,

This has been an issue I've been trying to fix for a while.

Yanfly's Message Core and ExtMesPack1 allow me to position a message above an event's head with \msgevent[x]. It works perfectly when RPG Maker MV doesn't have a zoom on it, but when at 2x zoom, the positioning is off.

I've found the JS in ExtMesPack1 that changes the positioning and added +48 due to the 2x zoom:

if (eventId <= 0) {
x = $gamePlayer.screenX();
y = $gamePlayer.screenY();
y -= $gamePlayer.spriteHeight()+48;
} else {
var ev = $gameMap.event(eventId);
if (ev) {
x = ev.screenX();
y = ev.screenY();
y -= ev.spriteHeight()+48;
}
}
}


It works for the player when a message is above their head, which is great. It's exactly where it should be but it doesn't work for events. The positioning is still slightly off for them. Does anyone know what I need to change in this code to get it to work for events?

This is the zoom script I'm using. (I have it placed in a parallel event on each map)
var xPos = $gamePlayer.screenX();
var YPos = $gamePlayer.screenY();

$gameScreen.setZoom(xPos, YPos, 2)


I also tried out MSB_MapZoom which works wonderfully as a zoom plugin and saves me having a parallel event script on every map, but sadly the message boxes are even more out of position with this plugin.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top