Help me guys! Flipped animations...

Hello guys!


I have a HUGE problem!


Whenever an Enemy uses a Skill, the Animation on my Characters are flipped?!


In Editor it looks like this:


2ql8r37.png



Looks pretty normal right?


BUT, when I go ingame and try it out, it looks like this:


zufmds.png



Dosnt look like in the Editor right?


How do I fix that...


I worked on that Animation for so long now and then realise it that it is flipped 🙁


Help me please!


I'm using Yanfly's Battle Engine and only Yanfly Plugins... If this might help you :/
That is due to you using a side view battle system. Is it flipped if you do front view? If so a plug in is causing the flip. If not, then it is due to using side view, and all I can say is redo the animation, knowing that it is going to be flipped.
It's being flipped because that's what MV does. The editor shows what it looks like when used by the party on the enemy, not the other-way round.


I don't know how to fix this, since I'm not sure it's an actual problem, more a mistake, but at least you know for next time!  😉
The animation is fliped the target is an actor and the sideview is on, it's a feature not a bug.


On rpg_objects.js:

Code:
Game_Actor.prototype.startAnimation = function(animationId, mirror, delay) {
    mirror = !mirror;
    Game_Battler.prototype.startAnimation.call(this, animationId, mirror, delay);
};

the line "mirror = !mirror;" is what invert the animation on actors, remove it and it will be always the same direction no matter who is the target.
The animation is fliped the target is an actor and the sideview is on, it's a feature not a bug.


On rpg_objects.js:

Code:
Game_Actor.prototype.startAnimation = function(animationId, mirror, delay) {
    mirror = !mirror;
    Game_Battler.prototype.startAnimation.call(this, animationId, mirror, delay);
};

the line "mirror = !mirror;" is what invert the animation on actors, remove it and it will be always the same direction no matter who is the target.

Thanks!!! This solved it!!
This a big problem for me to having issues with Yanfly's Battle core i think, anyone know a fix?
It seems it doesn't matter which mirror code i mess with it still mirrors after first turn... I would be happy disabling mirror all together but i haven't had such luck with tinkering with the code
Note I fixed it, anybody else just sick of mirror animation you gotta go through YEP_BattleEngineCore.js, YEP_X_ActSeqPack1.js, YEP_X_ActSeqPack2.js, YEP_X_ActSeqPack3.js and rpg_objects.js... Search mirror in notepad
you must first remove above "mirror = !mirror;"


BattleManager.actionActionAnimation = function(actionArgs) {
if (actionArgs && actionArgs[0]) {
var targets = this.makeActionTargets(actionArgs[0]);
} else {
var targets = this._targets;
}
var mirror = false;
if (actionArgs && actionArgs[1]) {
if (actionArgs[1].toUpperCase() === 'MIRROR') mirror = true;
}
var subject = this._subject;
var group = targets.filter(Yanfly.Util.onlyUnique);
var aniId = this._action.item().animationId;
if (aniId < 0) {
if (mirror) {
this._logWindow.showActorAtkAniMirror(subject, group);
} else {
this._logWindow.showAttackAnimation(subject, group);
}
} else {
this._logWindow.showNormalAnimation(group, aniId, mirror);
}
return true;
true to false

Game_Battler.prototype.startAnimation = function(animationId, mirror, delay) {
var data = { animationId: animationId, mirror: mirror, delay: delay };
this._animations.push(data);

any code with function(code) remove mirror
EXAMPLE


Game_Battler.prototype.startAnimation = function(animationId, delay) {
var data = { animationId: animationId, delay: delay };
this._animations.push(data);

You really gotta go through your plugins and say FU mirror lol goodluck
Or if your using Yanfly's Action Sequence packs you use animation x: target, mirror
First, this belongs in Plug-in Requests, due to the need for code. Also the original thread is really old and you have no idea if the poster is still looking for a solution. We appreciate your eagerness to post a solution but please don't post on threads over 30 days old for that reason.

I've moved this thread to Plug-In Requests. Thank you.



Kingkoopa300, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.



You also necroposted in your attempt to ask for help, though we do appreciate you also posting a solution, but odds are high the poster no longer needs it as it was 2.5 years ago.

Closed

Original thread: https://forums.rpgmakerweb.com/threads/help-me-guys-flipped-animations.60714/