ヘルプ日本語訳/Understanding the conditions

Last-modified: 2010-12-24 (金) 17:22:02

ヘルプ日本語訳 > Understanding the events > Understanding the conditions

 

条件を理解する

条件は、一つ以上のアクションを引き起こすための、アプリケーション内で行う検査です。Multimedia Fusion 2 Developer はアプリケーション実行時に条件がかを決定し、条件が真の場合は、対応したアクションを引き起こします。例えば、「ユーザーが特定のオブジェクトを左クリックしたとき」という条件で次のフレームに移動するとします。実行時、特定のオブジェクトをユーザーが左クリックしたとき、条件が真になり、次のフレームに移動するアクションが実行されます。ユーザーが適切なオブジェクトをクリックしない場合は、条件は偽となり、現在のフレームに留まったままになります。

 

イベントを構成する条件のうち典型的な物をいくつか挙げます。

  • プレイヤー1のライフの数 = 0
  • ビデオの開始
  • "Enter"キーを押した時
  • タイマーが指定値と同じ
  • 最後の"兵士"が破壊された
  • "ロケット"と"隕石"が衝突
 

(原文)Understanding conditions

Conditions are tests within your applications that trigger one or more actions. Multimedia Fusion 2 Developer determines at runtime whether the condition is true or false and, if it is true, triggers the appropriate action. For example, a condition might dictate that when the user clicks a particular object with the left mouse button the application jumps to the next frame. At runtime, if the user clicks the appropriate object then the condition is true and the next frame appears. If the user does not click the appropriate object then the condition is false and the current frame remains on the screen.

  • Typical conditions that your events can consist of include:
  • Number of lives of Player 1 = 0
  • Start of video
  • Has user pressed "Enter key"?
  • Is timer equal to a certain value?
  • Have all soldiers been destroyed?
  • Collision between rocket and meteorite