検索結果 2 件

by しぐにゃも
2023年1月27日(金) 12:57
フォーラム: MZ:質問
トピック: 【解決済み】スクリプトで複数のイベントの向きと位置を戻す方法について
返信数: 3
閲覧数: 1381

Re: スクリプトで複数のイベントの向きと位置を戻す方法について

ご回答ありがとうございます。

こちらですべて、上手く行きました。
for(var i = 2; i <= 4; i ++){
$gameMap.event( i ).locate( $dataMap.events[ i ].x , $dataMap.events[ i ].y);
const event = $gameMap.event(i);
event.setDirection(event._originalDirection);
}
ありがとうございます。

ーーーーー

それと、$dataMap.events[ i ].direction()にすると、
「Type ...
by しぐにゃも
2023年1月27日(金) 01:47
フォーラム: MZ:質問
トピック: 【解決済み】スクリプトで複数のイベントの向きと位置を戻す方法について
返信数: 3
閲覧数: 1381

【解決済み】スクリプトで複数のイベントの向きと位置を戻す方法について

お世話になります。
スクリプトを使用し、複数のイベントの向きを戻したいです。

スクリプト:
for(var i = 2; i <= 4; i ++){
$gameMap.event( i ).locate( $dataMap.events[ i ].x , $dataMap.events[ i ].y);
}


これを使うと位置が戻りました。
が、向きが戻りません。
image-03.gif

そこで、こちらに書き換えました。

スクリプト:
for(var i = 2; i <= 4; i ++){
$gameMap.event( i ).locate( $dataMap ...

詳細検索ページに戻る