- Joined
- Nov 29, 2018
- Messages
- 73
- Reaction score
- 8
- First Language
- English
- Primarily Uses
- RMMV
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:
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)
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.
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.





