【求助】rpgmakermv定位角色素材位置的代码
rpgmakermv吧
全部回复
仅看楼主
level 3
川川川笋 楼主
我想要做一个选项窗口能跟随角色的插件,但是现在是找不到对应的角色素材位置
目前是这样的如果有其它问题也麻烦了
Scene_Battle.prototype.startActorCommandSelection = function() {
this._statusWindow.show();
this._statusWindow.select(BattleManager.actor());
this._partyCommandWindow.close();
this._actorCommandWindow.show();
this._actorCommandWindow.setup(BattleManager.actor());
};
const spriteset = SceneManager._scene._spriteset
const actorSprite = spriteset(BattleManager.actor())
this._actorCommandWindow.x = $gamePlayer.x
this._actorCommandWindow.y = $gamePlayer.y
2024年06月29日 14点06分 1
level 5
$gamePlayer.screenX()
$gamePlayer.screenY()
2024年07月01日 01点07分 0
上边是地图上的位置,战斗中的位置是 SceneManager._scene._spriteset._actorSprites[0].x = =贴吧贴代码好麻烦
2024年07月01日 01点07分
谢谢!
2024年07月05日 11点07分
1