Yanfly's BattleEngineCore has a setting for front-view actor sprites. But they don't appear. The video about the plugin doesn't meantion this option. I already made SV Battlers hoping they'd appear in FV but sadly not. What am I supposed to do?
Front view actor sprites?
RPG Maker MV SupportThere are 2 folders with for the enemy sprites: img/enemies (for front view) and img/sv_enemies (for side view). If in the database you have side view checked, it will look for the enemy sprites in the second folder. If it is unchecked, it will look in the first folder. So if you placed some custom enemy sprites in the folder it isn't using, then the game won't find the sprite.
I knew that. The thing that confuses me is the plugin option saying that you can enable front-view actor sprites. I don't understand why the plugin has an option to show player characters in FV when I always see them in SV but not FV.
Ohh sorry, I misread.
Sorry, I can't help (don't really use YEP plugins). Maybe it was intended for people who have have custom graphics of front view actors (enemies top and actors down, a pokemon view maybe?)
Sorry, I can't help (don't really use YEP plugins). Maybe it was intended for people who have have custom graphics of front view actors (enemies top and actors down, a pokemon view maybe?)
To be honest I don't know either.
Not sure about doing it in actual front-view, but I helped someone else figure out how to fake a "rear-view" battle system, with or without Yanfly's BEC plugin. Here's the link to the Steam discussion: https://steamcommunity.com/app/363890/discussions/0/1743353164089521270/
I've recently uploaded a full plugin version with improved BEC support (BEC not required though) over on my Google Drive, but haven't tested it extensively. Full code in spoiler below; plugin link:
Edit: oh wow, Drive embeds are working now? Nice! 😂
I've recently uploaded a full plugin version with improved BEC support (BEC not required though) over on my Google Drive, but haven't tested it extensively. Full code in spoiler below; plugin link:
Code:
// ==============================================
// Cae_BattleStepY.js
// ==============================================
/*:
* @plugindesc v1.0 - Makes sideview battle actors step up/down rather than left/right in battle. Compatible with Yanfly's Battle Engine Core.
* @author Caethyril
*
* @help Plugin Commands:
* None.
*
* Suggested use: "back" view battle system with custom SV sprites.
*
* Note: if using Yanfly's Battle Engine Core, this plugin's parameters will be
* ignored. In that case, set the values using Yanfly's plugin instead.
*
* Compatibility:
* Yanfly's Battle Engine Core: load this plugin after Yanfly's.
* Overrides stepForward and retreat methods of Sprite_Actor.
* Conditionally aliases moveToStartPosition of Sprite_Actor.
* Also overrides Yanfly's stepFlinch method on Sprite_Actor.
*
* Terms of use:
* Free to use and modify.
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Update log:
* 1.0: Initial release.
*
* @param Home Position X
* @text Home Position X
* @type text
* @desc Formula for party X positions.
* @default Graphics.boxWidth / 2 + 96 * ($gameParty.battleMembers().length / 2 - index - 0.5)
*
* @param Home Position Y
* @text Home Position Y
* @type text
* @desc Formula for party Y positions.
* @default 440
*
* @param Step Distance
* @text Step Distance
* @type number
* @desc How far characters step forward when it's their turn.
* Default: 48 px
* @default 48
*/
var Imported = Imported || {}; // Import namespace
Imported.Cae_BattleStepY = 1.0; // Version declaration
var CAE = CAE || {}; // Author namespace
CAE.BattleStepY = CAE.BattleStepY || {}; // Plugin namespace
(function (_) {
'use strict';
// ============================ Initialisation ============================ //
// Process user parameters...
_.params = PluginManager.parameters('Cae_BattleStepY');
_.pos = { x: _.params['Home Position X'] || '', y: _.params['Home Position Y'] || '' };
_.step = Number(_.params['Step Distance'] || 48);
// New function: returns distance from entry point (off-screen) to home.
_.dEntry = function(sprite) { return Graphics.boxHeight - sprite._homeY; };
// New function: returns step distance, includes check for Yanfly BEC.
_.stepDist = function() { return Imported.YEP_BattleEngineCore ? Yanfly.Param.BECStepDist : _.step; };
// ========== Overrides! Change move directions from x to y axis ========== //
Sprite_Actor.prototype.stepForward = function() {
this.startMove(0, -_.stepDist(), 12);
};
Sprite_Actor.prototype.retreat = function() { this.startMove(0, _.dEntry(this), 30); };
Sprite_Actor.prototype.moveToStartPosition = function() { this.startMove(0, _.dEntry(this), 0); };
Sprite_Battler.prototype.stepForward = function() {
this.startMove(0, _.stepDist(), 12);
};
// ~v~v~v~v~v~ Yanfly Battle Engine Core compatibility ~v~v~v~v~v~ //
Sprite_Actor.prototype.stepFlinch = function() {
let flinchX = this.x - this._homeX;
let flinchY = this.y - this._homeY + Yanfly.Param.BECFlinchDist;
this.startMove(flinchX, flinchY, 6);
};
Sprite_Battler.prototype.stepFlinch = function() {
var flinchX = this.x - this._homeX;
var flinchY = this.y - this._homeY - Yanfly.Param.BECFlinchDist;
this.startMove(flinchX, flinchY, 6);
};
Sprite_Battler.prototype.moveForward = function(distance, frames) {
distance = parseInt(distance);
frames = parseInt(frames);
if (this._battler.isActor()) distance *= -1;
var moveX = this.x - this._homeX;
var moveY = this.y - this._homeY + distance;
this.startMove(moveX, moveY, frames);
};
Sprite_Battler.prototype.stepSubBack = function() {
var backX = -1 * this.width / 2;
this.startMove(0, backX, 6);
};
Sprite_Actor.prototype.stepSubBack = function() {
var backX = this._mainSprite.width / 2;
this.startMove(0, backX, 6);
};
// ================ Override home positions if appropriate ================ //
_.Sprite_Actor_setActorHome = Sprite_Actor.prototype.setActorHome; // Alias
Sprite_Actor.prototype.setActorHome = function(index) {
if (Imported.Yanfly_BattleEngineCore || _.pos.x === '' || _.pos.y === '') { // If positions not set or using BEC
_.Sprite_Actor_setActorHome.call(this, index); // Callback
} else {
try {
let homeX = Number(eval(_.pos.x));
let homeY = Number(eval(_.pos.y));
console.log(this._actor.name() + ':', homeX, homeY);
this.setHome(homeX, homeY);
} catch(e) {
console.log('Cae_BattleStepY.js error!\nFailed to eval home position formula!', String(e));
_.Sprite_Actor_setActorHome.call(this, index); // Fallback
}
}
};
})(CAE.BattleStepY);
Edit: oh wow, Drive embeds are working now? Nice! 😂
The reasoning for wanting FV actors is because when an enemy skill or your own skill targets the player party, you can hear the animation but you cannot see it. I made a few battle animations for enemies to hit the player party with but they don't visually show up in FV. Is there a way to change this?
The workaround I mentioned relies on using the side-view battle system (with or without Yanfly's Battle Engine Core), so animations display on both actors and enemies like you'd expect. The plugin I linked simply changes a few little things like SV actor positions and stepping directions to make it look like "front-view with actors" instead of side-view.
I'm not sure about the front-view settings of Yanfly's plugin, though. 😅
I'm not sure about the front-view settings of Yanfly's plugin, though. 😅
after hours tryng i got this using Yanfly's Battle Engine Core
Sprites were animated as normal
although seems pretty basic, there is a lot left for testing
Yanfly's Battle Engine Core
If kinda tired atm (4:48am @__@) I tried to edit the formula in X and in almost every change the game doesnt work, it also happens with Position Y although it didnt happened as frecuently as X, since i don't have enough knowledgement I cant figure out why this happens
Edit: The game crashes if you test by reseting the game (F5) even if you saved the new parameters, will always crash unless you close the game, im not sure, but for some reason aparently kills Yanfly's BEC, so you may have to reinstall it.
Also, sprites suit better with this config:
ill put a ss with my plugin list, thus you can discard any eventual clash beetween plugins (I started a new proyect days ago, thats why i'm not using too many add ons yet, I wonder how could this interact with improved features (like camera effects, skills, or extra sprites for attacks)
tl;dr
-Delete Yanfly's BEC from the pluggin Manager
-Reinstal Yanfly's BEC in the plugins directory
-Activate it and reconfig Frontview parameters as i posted
-Save it and the game project
-Run battle test from the database
Sprites were animated as normal
although seems pretty basic, there is a lot left for testing
Yanfly's Battle Engine Core
---Frontview---
Front Position X Graphics.boxWidth / 8 + Graphics.boxWidth / 4 * index
Front Position Y 400
Front Actor Sprite true
Front Sprite Priority 1
Front Position X Graphics.boxWidth / 8 + Graphics.boxWidth / 4 * index
Front Position Y 400
Front Actor Sprite true
Front Sprite Priority 1
If kinda tired atm (4:48am @__@)
Edit: The game crashes if you test by reseting the game (F5) even if you saved the new parameters, will always crash unless you close the game, im not sure, but for some reason aparently kills Yanfly's BEC, so you may have to reinstall it.
Also, sprites suit better with this config:
---Frontview---
Front Position X Graphics.boxWidth / 8 + Graphics.boxWidth / 8 * index
Front Position Y 500
Front Actor Sprite true
Front Sprite Priority 1
Front Position X Graphics.boxWidth / 8 + Graphics.boxWidth / 8 * index
Front Position Y 500
Front Actor Sprite true
Front Sprite Priority 1
ill put a ss with my plugin list, thus you can discard any eventual clash beetween plugins (I started a new proyect days ago, thats why i'm not using too many add ons yet, I wonder how could this interact with improved features (like camera effects, skills, or extra sprites for attacks)
tl;dr
-Delete Yanfly's BEC from the pluggin Manager
-Reinstal Yanfly's BEC in the plugins directory
-Activate it and reconfig Frontview parameters as i posted
-Save it and the game project
-Run battle test from the database
Original thread: https://forums.rpgmakerweb.com/threads/front-view-actor-sprites.103437/