知恵袋 https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q13208934403?query=%E3%83%84%E3%82%AF%E3%83%BC%E3%83%AB%20%E5%90%91%E3%81%8D%20%E5%85%A8%E5%93%A1
でスクリプトを入力するとありましたが、
下記のエラーになります
$gamePlayer._followers.forEach is not a function
対処法ご存知のかた教えていただけませんか?
ツクールmzで、イベントで全員を同じ方向を向かせる方法はありますか?
Re: ツクールmzで、イベントで全員を同じ方向を向かせる方法はありますか?
こんにちは!
ご提示のURLはツクールMV向けの質問のようです。
ツクールMVで実行可能なスクリプトが必ずしもツクールMZでも動作するわけではないので注意が必要です。
ツクールMZの場合は以下の通りになります。
ご提示のURLはツクールMV向けの質問のようです。
ツクールMVで実行可能なスクリプトが必ずしもツクールMZでも動作するわけではないので注意が必要です。
ツクールMZの場合は以下の通りになります。
コード: 全て選択
$gamePlayer.followers().data().forEach(follower => follower.setDirection($gamePlayer.direction()));
プラグイン関連のトラブルが発生した際の切り分けと報告の方法です。
http://qiita.com/triacontane/items/2e227e5b5ce9503a2c30
[Blog] : http://triacontane.blogspot.jp/
[Twitter]: https://twitter.com/triacontane/
[GitHub] : https://github.com/triacontane/
http://qiita.com/triacontane/items/2e227e5b5ce9503a2c30
[Blog] : http://triacontane.blogspot.jp/
[Twitter]: https://twitter.com/triacontane/
[GitHub] : https://github.com/triacontane/
Re: ツクールmzで、イベントで全員を同じ方向を向かせる方法はありますか?
コード: 全て選択
$gamePlayer._followers._data.forEach(follower => follower.setDirection($gamePlayer.direction()));
でどうでしょう。
MVでも変わらないと思うんだけどな…
かぶっちゃった てへ
Twitter、はじめました。
https://twitter.com/wtr_in_reverie/
https://twitter.com/wtr_in_reverie/
Re: ツクールmzで、イベントで全員を同じ方向を向かせる方法はありますか?
ありがとうございます!
出来ました!
出来ました!