Hi there. So, I've adjusted my screen resolution for my game, but now, it seems like there's a lot of unused space at the bottom of the screen in battle. Is there a way to fix this? I''ve already got the enemies as low as they can go in the editor.
Is there a Plugin or something that would do it? I can't find anything like that with the current plugins I'm using (Yanfly's Battle Core and Related Plugins).
MV Enemy Positions in battle.
JS Plugin RequestsI know @TheoAllen has one that fixes enemy placement in MZ with different screen resolutions, but I don't think it works in MV.
EDIT: he's fine with people modifying his plugins according to his github, so try this
EDIT: he's fine with people modifying his plugins according to his github, so try this
Code:
/*:
@plugindesc Adjust the enemy placement according to your game resolution automatically. Tweaked by Restart for MV
@author TheoAllen
@help
Adjust the enemy placement according to your game resolution automatically.
Because the default editor does not allow you to place the enemy far in the right when
you changed your game resolution.
Terms of Use:
- Free for commercial
- Credit is optional
*/
var Theo = Theo || {}
Theo.ResBasedPosition = function() {
var _ = Theo.ResBasedPosition
var troop = Game_Troop.prototype
_.DefMaxHeight = 624
_.DefMaxWidth = 816
_.setup = troop.setup;
troop.setup = function(troopId) {
_.setup.call(this, troopId);
_.fixEnemyPlacement.call(this)
};
_.fixEnemyPlacement = function(){
xScale = innerWidth/ _.DefMaxWidth
yScale = innerHeight/ _.DefMaxHeight
this._enemies.forEach(enemy => {
enemy._screenX *= xScale
enemy._screenY *= yScale
});
}
}
Theo.ResBasedPosition()
Try this
github.com
RMMV/MrTS_EnemyPositions.js at master · Trivel/RMMV
Contribute to Trivel/RMMV development by creating an account on GitHub.
I did a quick Google for "RPG Maker MV enemy position" and found this thread. It has a plugin to adjust enemy positions both individually in a notetag, and another to adjust all battlers via a plugin parameter.
Oh awesome, thanks for all the quick responses. I'll give them all a try and see which one works best. Thanks!
Moved to: Plugin Requests
Original thread: https://forums.rpgmakerweb.com/threads/enemy-positions-in-battle.137152/