How to move the battler and enemy in smaller screen resolution?

Does anyone know how to move the battler and enemy? Just like this 
zae0ag28b
. I am using 640 x 360 resolution for my android mobile phone. The battler and enemy didn't saw in whole. Is there any way to move the image in battle processing? Here is the link of the image https://s17.postimg.io/7zsp2izbj/Untitled.png
Does anyone know how to move the battler and enemy? Just like this 
zae0ag28b
. I am using 640 x 360 resolution for my android mobile phone. The battler and enemy didn't saw in whole. Is there any way to move the image in battle processing? Here is the link of the image https://s17.postimg.io/7zsp2izbj/Untitled.png

Okay so here's what I've figured out so far, to control the enemy position you can modify this line. Just copy and paste the info in notepad delete out the notes I added and adjust the numbers. Save as a .js file in your my documents/games/projectx/js/plugins folder and activate like you would any other plugin. Of course just reopen and edit as needed for the adjustments.



Sprite_Battler.prototype.initMembers = function() {
    this.anchor.x = 0.5;  
    this.anchor.y = 1;    <------- [maybe change this to 0.5 as the lower the number for this the closer it is to the bottom]
    this._battler = null;
    this._damages = [];
    this._homeX = 0;
    this._homeY = 0;
    this._offsetX = 0;
    this._offsetY = 0;
    this._targetOffsetX = NaN;
    this._targetOffsetY = NaN;
    this._movementDuration = 0;
    this._selectionEffectCount = 0;
};


--This is for the player, you also will need to adjust the shadow as it is seperated from the player for some reason--


Sprite_Actor.prototype.createMainSprite = function() {
    this._mainSprite = new Sprite_Base();
    this._mainSprite.anchor.x = 0.5;
    this._mainSprite.anchor.y = 1; <-----------------[same as above lower number=closer to bottom]
    this.addChild(this._mainSprite);
    this._effectTarget = this._mainSprite;
};


Sprite_Actor.prototype.createShadowSprite = function() {
    this._shadowSprite = new Sprite();
    this._shadowSprite.bitmap = ImageManager.loadSystem('Shadow2');
    this._shadowSprite.anchor.x = 0.5;
    this._shadowSprite.anchor.y = 0.5; <---------------
    this._shadowSprite.y = -2;
    this.addChild(this._shadowSprite);
};


^ Make sure you adjust that also or you end up with something like 


fdfdfdfd.png


hopefully this helps you out sorry for the very long post a lot of code needs edit for what you want.
The enemies you can simply drag'n drop around on the troop window, only the player needs code for changing position in sideview.
The enemies you can simply drag'n drop around on the troop window, only the player needs code for changing position in sideview.

Yeah in his picture thats side view I believe xD
Okay so here's what I've figured out so far, to control the enemy position you can modify this line. Just copy and paste the info in notepad delete out the notes I added and adjust the numbers. Save as a .js file in your my documents/games/projectx/js/plugins folder and activate like you would any other plugin. Of course just reopen and edit as needed for the adjustments.



Sprite_Battler.prototype.initMembers = function() {
    this.anchor.x = 0.5;  
    this.anchor.y = 1;    <------- [maybe change this to 0.5 as the lower the number for this the closer it is to the bottom]
    this._battler = null;
    this._damages = [];
    this._homeX = 0;
    this._homeY = 0;
    this._offsetX = 0;
    this._offsetY = 0;
    this._targetOffsetX = NaN;
    this._targetOffsetY = NaN;
    this._movementDuration = 0;
    this._selectionEffectCount = 0;
};


--This is for the player, you also will need to adjust the shadow as it is seperated from the player for some reason--


Sprite_Actor.prototype.createMainSprite = function() {
    this._mainSprite = new Sprite_Base();
    this._mainSprite.anchor.x = 0.5;
    this._mainSprite.anchor.y = 1; <-----------------[same as above lower number=closer to bottom]
    this.addChild(this._mainSprite);
    this._effectTarget = this._mainSprite;
};


Sprite_Actor.prototype.createShadowSprite = function() {
    this._shadowSprite = new Sprite();
    this._shadowSprite.bitmap = ImageManager.loadSystem('Shadow2');
    this._shadowSprite.anchor.x = 0.5;
    this._shadowSprite.anchor.y = 0.5; <---------------
    this._shadowSprite.y = -2;
    this.addChild(this._shadowSprite);
};


^ Make sure you adjust that also or you end up with something like 


View attachment 47558


hopefully this helps you out sorry for the very long post a lot of code needs edit for what you want.


Leon Kennedy



thank u. sorry for another question, how bout this.. how can I make small this one? I think that is too big for some mobile devices.. help me for this!! thank u so much!!
Untitled1.png

@Leon Kennedy


You gotta change all three of these since the commands use three different scripts to determine the window size.


default:


Window_BattleStatus.prototype.numVisibleRows = function() {
    return 4;
};


edit:


Window_BattleStatus.prototype.numVisibleRows = function() {
    return 2;
};


Default:


Window_PartyCommand.prototype.numVisibleRows = function() {
    return 4;
};


Edit:


Window_PartyCommand.prototype.numVisibleRows = function() {
    return 2;
};


Default:


Window_ActorCommand.prototype.numVisibleRows = function() {
    return 4;
};


Edit:


Window_ActorCommand.prototype.numVisibleRows = function() {
    return 2;
};
You gotta change all three of these since the commands use three different scripts to determine the window size.


default:


Window_BattleStatus.prototype.numVisibleRows = function() {
    return 4;
};


edit:


Window_BattleStatus.prototype.numVisibleRows = function() {
    return 2;
};


Default:


Window_PartyCommand.prototype.numVisibleRows = function() {
    return 4;
};


Edit:


Window_PartyCommand.prototype.numVisibleRows = function() {
    return 2;
};


Default:


Window_ActorCommand.prototype.numVisibleRows = function() {
    return 4;
};


Edit:


Window_ActorCommand.prototype.numVisibleRows = function() {
    return 2;
};



But keep in mind that, as far as I know, without a more in-depth edit this will make only two party members stats appear in the box at a time... could be an annoyance if the player wants to check the hp/mp of the third party member before choosing the command for the first, for example
But keep in mind that, as far as I know, without a more in-depth edit this will make only two party members stats appear in the box at a time... could be an annoyance if the player wants to check the hp/mp of the third party member before choosing the command for the first, for example

Right but all will just have to scroll to see the rest you are right about initial screen but it works just like if you type something 5 lines on the normal text box you have to scroll to see 5th line.


Example: 

nope.png
Uh. Didn't know you could do that. But how do you scroll the window? I see the arrows on it when battle testing, but even with the mouse I can only do it in the active command one...
Uh. Didn't know you could do that. But how do you scroll the window? I see the arrows on it when battle testing, but even with the mouse I can only do it in the active command one...

That's what I'm saying it scrolls as you command. You were making it sound like you could only use 2 characters with this option and thats it. 


Either way sigh took a very long time to find these edits so good luck kierre sorry if its not good enough.
That's what I'm saying it scrolls as you command. You were making it sound like you could only use 2 characters with this option and thats it. 


Either way sigh took a very long time to find these edits so good luck kierre sorry if its not good enough.



Oh, no, I meant that as far as I know only the stats of two appear at once, and the only way I could find to see the stats of the third character was to actually get to the point of using it whoch for things like deciding to use a healing potion would be an annoyance.


It was just a warning, I was really interested in your finding and in no way wanted to diminish it. In fact, am going to use it on the partycommand window. It only gets to two commands anyway.
Oh, no, I meant that as far as I know only the stats of two appear at once, and the only way I could find to see the stats of the third character was to actually get to the point of using it whoch for things like deciding to use a healing potion would be an annoyance.


It was just a warning, I was really interested in your finding and in no way wanted to diminish it. In fact, am going to use it on the partycommand window. It only gets to two commands anyway.

Ah ok I understand, and yeah it should serve to be very useful for people in games that might not include many characters and you get to see more of the battlefield and as you say command options are already limited so it doesn't make much difference. The party window with more than 2 would get somewhat annoying so I guess people will have to decide if they would rather see more battlefield and have smaller boxes or just leave as is xD. Maybe I can try to find a way around that.
I'd personally think about putting them in two columns or something. Up to the same number of characters. but maybe it could get a little too much too compressed? Need to check it out...


On mine I'm working on putting them in separate boxes with a battler like I did in the VxAce version of the same one I had.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-move-the-battler-and-enemy-in-smaller-screen-resolution.68373/