Hi, trying to make battle step forward go to the middle of the screen during skill selection instead of just go forward x amount. Found these code but I don't know how to tell the code move x amount for team member 1 and move x amount for team member number 2 and so on. This code moves them forward 48 pixels from their ready position only.
Sprite_Actor.prototype.stepForward = function() {
this.startMove(-48, 0, 12);
};
I believe should be something like below but not sure what is the right code.
if (team member 1)
Sprite_Actor.prototype.stepForward = function() { this.startMove(x, y, 12); };
if(team member 2)
Sprite_Actor.prototype.stepForward = function() { this.startMove(x+48, y-48, 12); };
Sprite_Actor.prototype.stepForward = function() {
this.startMove(-48, 0, 12);
};
I believe should be something like below but not sure what is the right code.
if (team member 1)
Sprite_Actor.prototype.stepForward = function() { this.startMove(x, y, 12); };
if(team member 2)
Sprite_Actor.prototype.stepForward = function() { this.startMove(x+48, y-48, 12); };