【解決】マップ移動後にプレイヤーキャラ操作不能
Posted: 2020年12月20日(日) 19:48
現在プレイヤーキャラを選択位置にテレポートさせる
プラグインを作っているのですが、
$gamePlayer.reserveTransfer()で移動させたあと、
プレイヤーの操作ができなくなります。
実際のコードはこんな感じです。
doTeleport() {
const loc = $teleportLocations[this._locationWindow.index()];
this._locationWindow.close();
this._guideWindow.close();
SceneManager.goto(Scene_Map);
$gamePlayer.reserveTransfer(loc.mapid, loc.x, loc.y, 0, 0);
}
なにか処理が足りないのではないかと思いますが、
どうしたらよいかわかる方はいらっしゃいませんか?
プラグインを作っているのですが、
$gamePlayer.reserveTransfer()で移動させたあと、
プレイヤーの操作ができなくなります。
実際のコードはこんな感じです。
doTeleport() {
const loc = $teleportLocations[this._locationWindow.index()];
this._locationWindow.close();
this._guideWindow.close();
SceneManager.goto(Scene_Map);
$gamePlayer.reserveTransfer(loc.mapid, loc.x, loc.y, 0, 0);
}
なにか処理が足りないのではないかと思いますが、
どうしたらよいかわかる方はいらっしゃいませんか?