Hey, it’s me again, I am attempting to load a bitmap based on a custom directory in the Img folder: img/excavating/
The code is as follows:
Unfortunately, when I use this code, it fails to find the file regardless of location, how many times I redo the directory, or how many times I recreate the file it is supposed to locate.
Is this coding outdated in the case of RPG Maker MZ version 1.5.0? Please let me know what I’m doing wrong.
It is saying that the file failed to load: excavateBackground.png.
The code is as follows:
Code:
var Excavating = Excavating || {};
Excavating.XS = Excavating.XS || {};
Excavating.XS.version = 1.00;
Excavating.Parameters = PluginManager.parameters(‘Excavating Core Plugin’);
Excavating.Param = Excavating.Param || {};
Excavating.Param.excavatingBackground = Excavating.Parameters[‘Background Directory’] || ‘’;
Spriteset_Excavating.prototype.createExcavatingBackground = function(){
this._excavatingBack = new TilingSprite();
this._excavatingBack.bitmap = ImageManager.loadExcavatingBG(“excavateBackground”);
this._backgroundSprite.addChild(this._excavatingBack);
};
ImageManager.loadExcavatingBG = function(filename){
return this.loadBitmap(Excavating.Param.excavatingBackground, filename);
};
Unfortunately, when I use this code, it fails to find the file regardless of location, how many times I redo the directory, or how many times I recreate the file it is supposed to locate.
Is this coding outdated in the case of RPG Maker MZ version 1.5.0? Please let me know what I’m doing wrong.
It is saying that the file failed to load: excavateBackground.png.