- Joined
- Apr 22, 2022
- Messages
- 34
- Reaction score
- 17
- First Language
- English
- Primarily Uses
- RMMV
Hello everyone, I am using Galv_Tools along with MBS_MapZoom and am running into the issue where the tool HUD is placed incorrectly while zoomed in. My maps only change zoom amount when transferring maps so I thought about using a variable to control how much to move the HUD by and adjust it accordingly on transfer.
Galv's plugin has parameters for HUD X,Y, but unfortunately it appears they are static and don't accept variables. I tried looking into the code and was messing with this line just to see if I could get it to move, but it appears to not be updating position even when the variable is changed in game. Here is the part of Galv's code I was looking at, I added the var offset part to try and get it assigned to my variable.
EDIT: I just realized it is moving but it's a map behind, im changing the variable whenever the player transfers maps but I don't think the variable is updating in time to tell the HUD where to draw, it's always set to the position i set it to when entering the last map..
Galv's plugin has parameters for HUD X,Y, but unfortunately it appears they are static and don't accept variables. I tried looking into the code and was messing with this line just to see if I could get it to move, but it appears to not be updating position even when the variable is changed in game. Here is the part of Galv's code I was looking at, I added the var offset part to try and get it assigned to my variable.
Code:
Sprite_ToolHud.prototype.setBitmap = function() {
var offset = $gameVariables.value(30);
this.x = (Galv.TOOLS.hudXY[0] + offset);
this.y = (Galv.TOOLS.hudXY[1] + offset);
this.bitmap = ImageManager.loadSystem(Galv.TOOLS.hudImg);
};
EDIT: I just realized it is moving but it's a map behind, im changing the variable whenever the player transfers maps but I don't think the variable is updating in time to tell the HUD where to draw, it's always set to the position i set it to when entering the last map..
Last edited: