【解決済】操作キャラの周りを他のキャラが回り続けるプラグインはありますか?
Posted: 2021年2月06日(土) 08:18
ツクール素材を公開・リクエストしたり、質問ができるフォーラムです。
https://tm.yumineko.com/
コード: 全て選択
//円軌道
const x = $gamePlayer.screenX() + 48 * Math.cos( 2 * Math.PI * (Graphics.frameCount % 120) / 120);
const y = $gamePlayer.screenY() + 48 * Math.cos((1/2) * Math.PI + 2 * Math.PI * (Graphics.frameCount % 120) / 120);
$gameScreen.movePicture(1,1,x,y,100,100,255,0,1)
コード: 全て選択
//楕円軌道
const x = $gamePlayer.screenX() + 48 * Math.cos( 2 * Math.PI * (Graphics.frameCount % 120) / 120);
const y = $gamePlayer.screenY() + 48 * Math.cos((1/4) * Math.PI + 2 * Math.PI * (Graphics.frameCount % 120) / 120);
$gameScreen.movePicture(1,1,x,y,100,100,255,0,1)
コード: 全て選択
//∞軌道
const x = $gamePlayer.screenX() + 48 * Math.cos( 2 * Math.PI * (Graphics.frameCount % 120) / 120);
const y = $gamePlayer.screenY() + 48 * Math.cos((1/2) * Math.PI + 4 * Math.PI * (Graphics.frameCount % 120) / 120);
$gameScreen.movePicture(1,1,x,y,100,100,255,0,1)
コード: 全て選択
//よくわからない軌道1
const x = $gamePlayer.screenX() + 48 * Math.cos( 2 * Math.PI * (Graphics.frameCount % 120) / 120);
const y = $gamePlayer.screenY() + 48 * Math.cos((1/2) * Math.PI + 6 * Math.PI * (Graphics.frameCount % 120) / 120);
$gameScreen.movePicture(1,1,x,y,100,100,255,0,1)
コード: 全て選択
//よくわからない軌道2
const x = $gamePlayer.screenX() + 48 * Math.cos( 4 * Math.PI * (Graphics.frameCount % 120) / 120);
const y = $gamePlayer.screenY() + 48 * Math.cos((1/4) * Math.PI + 6 * Math.PI * (Graphics.frameCount % 120) / 120);
$gameScreen.movePicture(1,1,x,y,100,100,255,0,1)
コード: 全て選択
//横長楕円
const x = $gamePlayer.screenX() + 48 * Math.cos( 2 * Math.PI * (Graphics.frameCount % 120) / 120);
const y = $gamePlayer.screenY() - 48 + 24 * Math.cos((1/2) * Math.PI + 2 * Math.PI * (Graphics.frameCount % 120) / 120);
$gameScreen.movePicture(1,1,x,y,100,100,255,0,1)