I know that you can use an actor sprite as an enemy but what if for example you wanted to use a static image of an orge as your battler image during a fight instead of a sprite actor?
Is this possible?
Is this possible?
Can you tell me how more specifically?
Sprite_Actor.prototype.updateFrame = function() {
var monster = this._mainSprite.bitmap._url.match(/Behemoth|Fairy/) !== null; // add monster reference here
Sprite_Battler.prototype.updateFrame.call(this);
var bitmap = this._mainSprite.bitmap;
if (bitmap) {
var motionIndex = this._motion ? this._motion.index : 0;
var pattern = this._pattern < 3 ? this._pattern : 1;
var cw = monster ? bitmap.width : bitmap.width / 9;
var ch = monster ? bitmap.height : bitmap.height / 6;
var cx = monster ? 0 : Math.floor(motionIndex / 6) * 3 + pattern;
var cy = monster ? 0 : motionIndex % 6;
this._mainSprite.setFrame(cx * cw, cy * ch, cw, ch);
}
};
Original thread: https://forums.rpgmakerweb.com/threads/how-to-swap-actor-sprite-with-enemies.74936/