Hello, my friend! Remember me? 😀
Your plugin is awesome! Thank you for sharing this forum!
Your plugin is awesome! Thank you for sharing this forum!
Oh, yes, MovingWindows is intended mostly for simple timed movement, e.g. move in, or sway to and fro. You could do "triggered" movement with a more complex formula, but the position would reset when the window closes.
Hm... Yeah, that would be great. But I'm not sure how to do it since as I understand there are no Plugin Commands. I just want to change Window's coordinates via Script/Plugin command.
Oh, if you just want to set the message window's location, try something like this in a Script command:
var w = SceneManager._scene._messageWindow;
w.x = 0;
w.y = 200;
Hm...Works great, but doesn't that mean I could imitate windows movement simply by gradually changing those coordinates in a parallel event?
You could, e.g.
w.y += 1;
Oh, just noticed this. Are you testing in a new project, and from a New Game? Just tested and it seems to be working OK for me in a v1.6.2 project. Also, if you have other plugins enabled, you could try disabling them to see if that helps, maybe it's conflicting with some other plugin. 😴
Unfortunately, I need all the plugins I'm using. Has to be some sort of compatibility issue.
Sprite_Animation.prototype.updateDragonBonesPosition = function() {
var position = this._animation.position;
if (position === 3) return;
var battler = this._target._battler;
if (!this._target) return;
if (!this._target._battler && (this._target._battler !== undefined)) return;
if (battler !== undefined) {
var data = battler.isActor() ? battler.actor() : battler.enemy();
if (position === 0) {
this.y -= data.meta.dragonbone_height;
} else if (position === 1) {
this.y -= data.meta.dragonbone_height / 2;
}
var heightRate = battler.battler().getFloatHeight() + battler.battler().getJumpHeight();
var height = heightRate * data.meta.dragonbone_height;
this.y -= height;
} else {
var battler = this._target.parent._battler;
if (battler && battler.hasDragonBone) {
var data = battler.isActor() ? battler.actor() : battler.enemy();
if (position === 0) {
this.y -= data.meta.dragonbone_height;
} else if (position === 1) {
this.y -= data.meta.dragonbone_height / 2;
}
var heightRate = this.battler.battler().getFloatHeight() + this.battler.battler().getJumpHeight();
var height = heightRate * data.meta.dragonbone_height;
this.y -= height;
}
}
};
Assuming that's the correct method (looks promising!), then I'm guessing this might work:
(function(alias) {
Sprite_Animation.prototype.updateDragonBonesPosition = function() {
var batt = this._target._battler;
if (batt && !batt.isTimeStopped()) alias.call(this);
};
})(Sprite_Animation.prototype.updateDragonBonesPosition);
Original thread: https://forums.rpgmakerweb.com/threads/caethyrils-plugins.106255/