Compatibility between Galvs Message Busts and MBS Map Zoom

Hey there.


I make it short. I use Galv message busts and the MBS Map Zoom plugin. It works pretty together without crashs or else, but if i have a message bust and at the same time i have zoomed in or out, the message bust dont geht zoomed. Than it looks so:
 

Spoiler
Unbenannt.PNG


Ignore the black lines, this is a permant problem of zoom scripts xD
But you see my problem 😀
In the MBS Zoom Script is a function to get pictures zoomed if you write [zoom] behind the picture name "lol [zoom].png" for example. This only works with the normal "show picture" - command.

I thought there must be a way to get this message bust zoomed in the same way as the normal pictures.


Thanks for reading, i hope someone can help =)

PS: if someone knows how to delete this black lines by zooming, this would be nice to know, too 😀


greez BD
Hey there.


I make it short. I use Galv message busts and the MBS Map Zoom plugin. It works pretty together without crashs or else, but if i have a message bust and at the same time i have zoomed in or out, the message bust dont geht zoomed. Than it looks so:
 



Ignore the black lines, this is a permant problem of zoom scripts xD
But you see my problem 😀
In the MBS Zoom Script is a function to get pictures zoomed if you write [zoom] behind the picture name "lol [zoom].png" for example. This only works with the normal "show picture" - command.

I thought there must be a way to get this message bust zoomed in the same way as the normal pictures.


Thanks for reading, i hope someone can help =)

PS: if someone knows how to delete this black lines by zooming, this would be nice to know, too 😀


greez BD



Using the same plugin as you, for my project.
I was faced with the same problem.
My fight is done with images and a zoom on the heroes before.
You must unfortunately use the script to display and move at the same time zoom your images.
The formula must be made in relation to your resolution, you should also made some a lot test.
Try Store your zoom Var X, Y and make a picture move with your Own formule.


Did you try


// X, Y , You need store and make multi test with your formula 


var x= ??;
var y= ??;
var duration = ??;
// need set MapZoom center event id befor if need or MapZoom center x y
$gameMap.setZoom(x, y, duration); // X, Y are the scale
$gameScreen.movePicture(pictureId, origin, x, y, scaleX, scaleY, opacity, blendMode, duration)


When all ok , you can make a little function


function CallZoom1(x,y,duration) {
//all you zoom code
}

// And call this to use you zoom forumula

CallZoom1(?,?,?);


ps: i no have black line 
I know what you mean, but im using galvs message bust:
https://galvs-scripts.com/2015/11/01/mv-message-busts/


this means, the plugin create the busts based on the faceset automatically. I cant get in the process.

I made a demo for you (only 1,14mb xD). There you can watch it. Mabye you find a way.
https://mega.nz/#!39dXjAbT!9KxerC-pTzjt9qeaP6833RzrkpGHUgjRrIBu4rFi0RM

 
the message bust dont geht zoomed.

I can't understand your problem. Busts zoom in when you call MapZoom, yes, they moved lower but they are zoomed. 


You want something like this?

Spoiler
7a773f73669eba1cca317c3ed2a36e88.gif

Pictures zoom works in the same way as showed in gif.
I can't understand your problem. Busts zoom in when you call MapZoom, yes, they moved lower but they are zoomed. 


You want something like this?

Spoiler
7a773f73669eba1cca317c3ed2a36e88.gif

Pictures zoom works in the same way as showed in gif.

 Yes thats right.


Sorry thats my bad, i told you wrong 😮
Of course i mean that the picture is not at the same place like before. I should be at the same place. And it sould NOT zoom.
 Yes thats right.


Sorry thats my bad, i told you wrong 😮
Of course i mean that the picture is not at the same place like before. I should be at the same place. And it sould NOT zoom.

So you need this?

Spoiler
1defa911daae22d2798c950bbd7130f4.gif
😮
Yes... so i need it. How you fixed it?
😮
Yes... so i need it. How you fixed it?

find in mapzoom plugin function called 


Spriteset_Map.prototype.updatePosition


and add to the end of function this 


if (!this._msgBustSprite) return;
this._msgBustSprite.scale = new PIXI.Point(1.0 / scale.x, 1.0 / scale.y);
this._msgBustSprite.y = this._msgBustSprite.y / scale.y


i can create mini addon for this but it so small so do it by yourself 🙂
A mini add on, or the updated map zoom plugin, would be nice. I dont have knowlegde for scripts 😀

This function works only if galvs message bust plugin calls the busts right?
oh, ok, then add this to the end of plugin

Code:
Map_Zoom_Alias_Spriteset_Map_updatePosition = Spriteset_Map.prototype.updatePosition;
Spriteset_Map.prototype.updatePosition = function() {
	Map_Zoom_Alias_Spriteset_Map_updatePosition.call(this)
	var scale = $gameMap.zoom;
	if (!this._msgBustSprite) return;
	this._msgBustSprite.scale = new PIXI.Point(1.0 / scale.x,  1.0 / scale.y);
	this._msgBustSprite.y = this._msgBustSprite.y / scale.y
};
Oh my god ! 😀
It works! It works! 😀 Thank you! This is really awesome.

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-between-galvs-message-busts-and-mbs-map-zoom.72217/