Hello all! i'm using a simple script that mirror the position of actor and enemy :
And with that i'm using Yanflybattlecore engine.. now the only problem is the X position of the Actors
The settings is home position X and this is the default formula :
screenWidth + 16 + (maxSize + 2) * 32 + index * 32
Now.. how i can invert this ? i try but im not very good with that.
And i'm using too Yep X Act seq Pack2 for set simple animation like moving to te target when
attacking melee
Thanks for the helps!!!
Code:
/*:
* @target MZ
* @plugindesc Sideview actors step/face right. For use with VisuStella Battle Core.
* @author Caethyril
* @orderAfter VisuMZ_1_BattleCore
* @url https://forums.rpgmakerweb.com/index.php?threads/140932/
* @help Free to use and/or modify for any project~
*
* Adjust the home position in VisuStella Battle Core's parameters:
* - Actor Battler Settings > JS: Home Position
* - Find this line:
* x += index * 32;
* - Add this line immediately afterwards:
* x = Graphics.boxWidth - x;
*/
// Override! Step 48 px -> instead.
Sprite_Actor.prototype.stepForward = function() {
this.startMove(48, 0, 12);
};
(function(alias) {
// Horizontally mirror actor battler sprite immediately after creation
Sprite_Actor.prototype.createMainSprite = function() {
alias.apply(this, arguments);
this._mainSprite.scale.x *= -1;
};
})(Sprite_Actor.prototype.createMainSprite);
(function(alias) {
// Horizontally mirror/reposition weapon sprite immediately after creation
Sprite_Weapon.prototype.initMembers = function() {
alias.apply(this, arguments);
this.scale.x *= -1;
this.x *= -1;
};
})(Sprite_Weapon.prototype.initMembers);
And with that i'm using Yanflybattlecore engine.. now the only problem is the X position of the Actors
The settings is home position X and this is the default formula :
screenWidth + 16 + (maxSize + 2) * 32 + index * 32
Now.. how i can invert this ? i try but im not very good with that.
And i'm using too Yep X Act seq Pack2 for set simple animation like moving to te target when
attacking melee
Thanks for the helps!!!
