I'm using http://www.yanfly.moe/wiki/Category:Action_Sequences_(MV) and I was curious is there a way to make the actor or enemy stay wherever the hit made them end up? I'm also using this snippet to keep the attacker wherever they land after an attack.
Basically I have the game keeping track of if the actor's or enemies go beyond a certain X coordinate. Like if actor's hit past a certain point, it's like they hit the wall and get stunned. It'd be easier though if actors/enemies could push each other towards the wall. Problem is after the sequence, even if I move the target backwards, they return to where they started, instead of staying where they ended up. Since there's a way to keep the attacker at the new location, I'm wondering if the same can be done with the person who was attacked.
EDIT: Another plugin I was using has an eval that I can use in combination with the snippet above and it does EXACTLY what I need it to do. https://plugin.fungamemake.com/archives/11505 the plugin can be found here if anyone is curious.
JavaScript:
var Imported = Imported || {};
Imported.MRP_NeverMoveBack = true;
var MRP = MRP || {};
MRP.NeverMoveBack = MRP.NeverMoveBack ||{};
(function() {
MRP.NeverMoveBack.BattleManager_createFinishActions = BattleManager.createFinishActions;
BattleManager.createFinishActions = function() {
var sprite = this._action.subject().battler();
sprite._homeX = sprite.x;
sprite._homeY = sprite.y;
sprite._offsetX = 0;
sprite._offsetY = 0;
MRP.NeverMoveBack.BattleManager_createFinishActions.call(this);
};
})();
Basically I have the game keeping track of if the actor's or enemies go beyond a certain X coordinate. Like if actor's hit past a certain point, it's like they hit the wall and get stunned. It'd be easier though if actors/enemies could push each other towards the wall. Problem is after the sequence, even if I move the target backwards, they return to where they started, instead of staying where they ended up. Since there's a way to keep the attacker at the new location, I'm wondering if the same can be done with the person who was attacked.
EDIT: Another plugin I was using has an eval that I can use in combination with the snippet above and it does EXACTLY what I need it to do. https://plugin.fungamemake.com/archives/11505 the plugin can be found here if anyone is curious.