Galv Tools Plugin
The plugin accepts parameters to set the static position of the hud image, but I want to be able to move it while in game with either a script call or plugin command. I just can't figure out how to modify the x and y.
[CODE
var txt = PluginManager.parameters('Galv_Tools')["HUD XY"].split(',');
Galv.TOOLS.hudXY = [Number(txt[0]),Number(txt[1])];
Sprite_ToolHud.prototype.setBitmap = function() {
this.x = Galv.TOOLS.hudXY[0];
this.y = Galv.TOOLS.hudXY[1];
this.bitmap = ImageManager.loadSystem(Galv.TOOLS.hudImg);
};[/CODE]
var txt = PluginManager.parameters('Galv_Tools')["HUD XY"].split(',');
Galv.TOOLS.hudXY = [Number(txt[0]),Number(txt[1])];
Sprite_ToolHud.prototype.setBitmap = function() {
this.x = Galv.TOOLS.hudXY[0];
this.y = Galv.TOOLS.hudXY[1];
this.bitmap = ImageManager.loadSystem(Galv.TOOLS.hudImg);
};[/CODE]
The plugin accepts parameters to set the static position of the hud image, but I want to be able to move it while in game with either a script call or plugin command. I just can't figure out how to modify the x and y.