Hello! I'm not 100% sure if it's exactly here I must post, but it's for RPG Maker MV, so I'll assume that it is.
Basically, what I want to do is to be able to edit the position of battlers in-game.
I have most gameplay elements and whatnot that I have ready for all that stuff, but all I need is the command line to set it to something different.
In sprite.js, I have found the command setHome.
I've played with it, and from what I've seen, it does change the position of the actors.
My only question would be: how could I access it? I use various plugins from Yanfly, which includes YEP_SkillCore. What I'd like to do, for example, is something like this:
But obviously, that doesn't work (since it's probably referring to the battler itself, rather than the sprite). So... could anyone help me out with this? I've been searching around, but I just can't figure it out. Any help would be appreciated! 🤘:distrust:
Basically, what I want to do is to be able to edit the position of battlers in-game.
I have most gameplay elements and whatnot that I have ready for all that stuff, but all I need is the command line to set it to something different.
In sprite.js, I have found the command setHome.
Code:
Sprite_Battler.prototype.setHome = function(x, y) {
this._homeX = x;
this._homeY = y;
this.updatePosition();
};
I've played with it, and from what I've seen, it does change the position of the actors.
My only question would be: how could I access it? I use various plugins from Yanfly, which includes YEP_SkillCore. What I'd like to do, for example, is something like this:
Code:
<After Eval>
a.setHome(100,200);
</After Eval>
But obviously, that doesn't work (since it's probably referring to the battler itself, rather than the sprite). So... could anyone help me out with this? I've been searching around, but I just can't figure it out. Any help would be appreciated! 🤘:distrust: