[Complete] Side-view Actors as Enemies

In my recent videos, I've been using side-view actors as enemy sprites instead of plain old slime.


The enemies would act like actors:


- when they attack, they will play the appropriate motion


- if they're holding a weapon, the appropriate weapon icon will be displayed


- when they're casting a spell, the casting motion will occur


- when they get hit, they would play the damage motion


- when they're low on HP, they will look distraught


- when they're knocked out, they will appear knocked out


And so on.


Originally, I had used Rexal's animated enemies in my earliest videos, which was good, but then I started developing more plugins and...it wasn't compatible.


So rather than figuring out how to apply patches for every plugin I wrote, I decided to look for a solution that would attempt to be automatically compatible.


Eventually I ended up just implementing a plugin myself that supported my other plugins.


For example, if you wanted to use enemy equips, this plugin would automatically show the equips that are held by the enemy (if they're using side-view actor sprites)


​



I've tested it and so far it looks alright with Ellye's ATB, so if you're using that, you should be good to go


​



It sort of works with Yanfly's battle core, but the enemies are facing the wrong way.
This is really cool! I'll see what I can do about the yanfly battle core since maybe theres an option in his parameter which makes this work...

EDIT: I found this in Rexal's combatibility with Yanfly's Battle core, maybe it could help?

Spoiler
//-----------------------------------------------------------------------------
// Battle Engine Core
//=============================================================================

if(Imported.YEP_BattleEngineCore)
{


Game_Enemy.prototype.spriteWidth = function() {

if(!this.battler()) return 1;

if(this._animated)Rexal.log(this.battlerName() + ' is an SV Battler.','info'); else Rexal.log(this.battlerName() + " isn't an SV Battler.",'info');
if (this._animated && this.battler()._mainSprite) {
return this.battler()._mainSprite.width;
} else {
return this.battler().width;
}

};

Game_Enemy.prototype.spriteHeight = function() {

if(!this.battler()) return 1;

if (this._animated && this.battler()._mainSprite) {
return this.battler()._mainSprite.height;
} else {
return this.battler().height;
}

};

Sprite_EnemyRex.prototype.stepFlinch = function() {
var flinchX = this.x - this._homeX - Yanfly.Param.BECFlinchDist;
this.startMove(flinchX, 0, 6);
};


Sprite_EnemyRex.prototype.stepForward = function() {
this.startMove(Yanfly.Param.BECStepDist, 0, 12);
};




}



}
Do you know what those plugin parameters are for? Flinching and stepping seem like they just control how far you step forward.


The bigger issue on my end is the fact that I'm basically just displaying an actor sprite in place of the enemy, and yanfly's battle core assumes actors only face left...


So for example, I have another plugin that turns the sprite around when it's confused (like how it's done in final fantasy). I don't think this is going to work with yanfly's either because of that direction assumption.
Hmm... Well what if I look through the code and see if I can find where his basically says "Actor face left"
Since Yanfly is providing his own implementation of side-view actor enemies, I'm not going to prioritize his battle system since users will likely use his plugin anyways.


However, if anyone has any other battle systems they would like it to work with just let me know.
Since Yanfly is providing his own implementation of side-view actor enemies, I'm not going to prioritize his battle system since users will likely use his plugin anyways.

However, if anyone has any other battle systems they would like it to work with just let me know.
now that makes me very sad, i use/would use both 🙂
now that makes me very sad, i use/would use both 🙂
If it does basically the same thing, I would recommend using Yanfly's since it's specifically tailored for his plugins.
@_@ then i am missing something because i dont have a way to have actors show as combatants
@_@ then i am missing something because i dont have a way to have actors show as combatants
I think it's on his to-do list. Please check with Yanfly for an ETA on completion.
I like some of Yanfly's plugins but I sometimes find other plugins that work differently to his that I use.

This is because sometimes plugins work slightly differently even if they are meant to be the same and I prefer to use alternative ones in certain cases.

Like a feature is different or works slightly differently.

I really like your plugins as they are always fun to mess with.
I think it's on his to-do list. Please check with Yanfly for an ETA on completion.
ill use whichever one is released first and is easiest to use
i think you can modify the

spritename.scale.x = -spritename.scale.xto flip the image horizontally.
i think you can modify the

spritename.scale.x = -spritename.scale.xto flip the image horizontally.
Yes.

But if you had some sort of "direction", you would also need to take that into consideration.

And if you were also facing top/down/left/right or potentially diagonal and so on...things get complicated.
What about the converse--using sideview battlers for actors?  obviously this would not include all the animations and stuff, but it would introduce a whole new world of possibilities for actor-battler art.

Original thread: https://forums.rpgmakerweb.com/threads/complete-side-view-actors-as-enemies.51124/