TrainCarts/Signs/Animate [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
No edit summary
(Created page with "''animate''。続けて、追加でアニメーションのオプションフラグを書き込むことも可能です。 * reset('r'):アニメーションの再生を頭に強制的にリセットします。 * looped('l'):アニメーションを永遠にループさせます。 * queue('q'):アニメーションを順番待ちのキューに追加し、現在のアニメーションが再生し終わった後に再生させます。複数のアニ...")
Line 23: Line 23:
=== 二行目 ===
=== 二行目 ===


<div lang="en" dir="ltr" class="mw-content-ltr">
''animate''。続けて、追加でアニメーションのオプションフラグを書き込むことも可能です。
''animate'', optionally followed up by any of the following option flags:
* reset('r'):アニメーションの再生を頭に強制的にリセットします。
* reset (or: 'r') - Hard-resets playback of the animation to the beginning
* looped('l'):アニメーションを永遠にループさせます。
* looped (or: 'l') - Loops the animation forever
* queue('q'):アニメーションを順番待ちのキューに追加し、現在のアニメーションが再生し終わった後に再生させます。複数のアニメーションを連続して再生したい場合に使えます。
* queue (or: 'q') - Queues up the animation to be played after the current animation finished. This can be used to play multiple animations in a timed sequence
* move('m'):ムーブアニメーションモード。アタッチメントや列車の移動速度に応じて、アニメーションの再生速度も変化させます。
* move (or: 'm') - Move animation mode. Makes playback speed depend on how fast the attachment/train is moving
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 03:20, 25 August 2026

Other languages:

概要

Animateサインは、列車のアタッチメントに保存されたアニメーションを再生します。再生速度やループなどのアニメーションのプロパティを上書きして再生することもできます。アニメーションを再生する対象には、列車のすべてのトロッコ、単一のトロッコ、もしくは遠隔操作による遠くの列車を取ることができます。


記法

Signtemplate.png
[train]
animate
rotate


Signtemplate.png
[train]
animate looped
roll
0.5


Signtemplate.png
[train]
animate lr
rotate
0.5 0.4


一行目

[train]で列車に含まれるすべてのトロッコ、[cart]でサイン看板の上を通った単一のトロッコを対象に取ります。遠隔操作も対応しています。


二行目

animate。続けて、追加でアニメーションのオプションフラグを書き込むことも可能です。

  • reset('r'):アニメーションの再生を頭に強制的にリセットします。
  • looped('l'):アニメーションを永遠にループさせます。
  • queue('q'):アニメーションを順番待ちのキューに追加し、現在のアニメーションが再生し終わった後に再生させます。複数のアニメーションを連続して再生したい場合に使えます。
  • move('m'):ムーブアニメーションモード。アタッチメントや列車の移動速度に応じて、アニメーションの再生速度も変化させます。

Multiple flags can be specified like so:

Signtemplate.png
[train]
animate lm
rotate
1


Third Line

animation name. By default animations rotate, roll and pitch can be used to animate the entire Minecart


Fourth Line

Can be left empty, otherwise the speed and delay for playing the animation can be specified. The speed is multiplied with the speed(s) of the animations played, and the delay is added. First number is speed, if a second number is specified with a space between it, that is the delay. To play an animation in reverse, use a negative speed.


Scenes

As of version 1.17.1-v2 it is possible to create scenes in the animations of trains. To play a specific scene with a sign, put it on the sign as such:

Signtemplate.png
[train]
animate
doors[open]
1.0


Which will play scene 'open' of animation 'doors'. You can also specify a range of scenes to play using animation[scenestart:sceneend], or animation[:scene] to play from the beginning of the animation to this scene, or animation[scene:] to play from the scene to the end of the animation.