Hello,
I want to check for plugin command, but after something. I explain :
I got this
Spriteset_Map.prototype.createLowerLayer = function() { Spriteset_Base.prototype.createLowerLayer.call(this); map = $dataMap; this.createTilemap();};Which create a tilemap. So next I can do that :
Spriteset_Map.prototype.createLayers = function() { this._tilemap.addChild(child);};Who is working like a charm. But when I do this :
var aliasPluginCommand = Game_Interpreter.prototype.pluginCommand;Game_Interpreter.prototype.pluginCommand = function(command, args) { aliasPluginCommand.call(this, command, args); console.log(this._tilemap);}It's undefined, it seems logical cause it's not the same class, but so how to access to _tilemap ?
Thanks for help !
I want to check for plugin command, but after something. I explain :
I got this
Spriteset_Map.prototype.createLowerLayer = function() { Spriteset_Base.prototype.createLowerLayer.call(this); map = $dataMap; this.createTilemap();};Which create a tilemap. So next I can do that :
Spriteset_Map.prototype.createLayers = function() { this._tilemap.addChild(child);};Who is working like a charm. But when I do this :
var aliasPluginCommand = Game_Interpreter.prototype.pluginCommand;Game_Interpreter.prototype.pluginCommand = function(command, args) { aliasPluginCommand.call(this, command, args); console.log(this._tilemap);}It's undefined, it seems logical cause it's not the same class, but so how to access to _tilemap ?
Thanks for help !