ヘルプ日本語訳/Immediate conditions

Last-modified: 2011-01-14 (金) 18:40:37

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

 

Ordering conditions within your events

イベント中の条件の順番

Multimedia Fusion 2 Developer アプリケーションのイベントは、場合によってはいくつもの条件から成り立っていることがあります。これらの条件の判定の順番は条件の種類によって決まります。2種類の条件があります。

即時条件(Immediate conditions)
Multimedia Fusion 2 Developerアプリケーションの条件のほとんどは、常時、条件判定を行っています。しかし、即時条件と呼ばれる条件は、イベントが起こる時だけ実行されます。例えば、キー検出条件は、ユーザーがキーを押したときだけ起こります。これらの条件は一瞬だけ真になります。

 

以下は即時条件の例です。

  • オブジェクト同士の衝突
  • 背景との衝突
  • オブジェクトが動作領域から消える、動作領域に入る
  • ユーザーがオブジェクト、動作領域、特定の領域をクリック
  • ユーザーがキーを押した
  • プレイヤーがキーを押した
  • 「フレームが開始」や「アプリケーションが終了」条件
  • タイマーが指定値に達した

通常条件(Normal conditions)
通常条件は、イベントエディタで現れる順番で判定を行います。イベント行中で最初に現れる条件に関連付けられたアクションが最初に実行されます。*1

 

以下は通常条件の例です。

  • 比較条件
  • 特別な条件(Special conditions)
  • オブジェクトの動作、アニメーション、方向の条件
  • サウンドや音楽の条件
  • ストーリーボードコントロールオブジェクトの条件
  • 「新規オブジェクト」オブジェクトの条件
  • カウンターオブジェクトの条件
  • 外部条件(External conditions)

Multimedia Fusion 2 Developer は上から順にイベントの判定を始めて、イベント内の条件も上から順に判定されます。条件がいくつかのオブジェクトに影響する場合、各オブジェクトが判定されます。Multimedia Fusion 2 Developer が最後のイベントに到達したとき、最初のイベントに戻り、新しいイベントサイクルで判定を繰り返します。

(原文)Ordering conditions within your events

Each event in your Multimedia Fusion 2 Developer applications can be made up of any number of different conditions. The order in which these conditions are tested depends on the type of condition. There are two types of conditions.

 

Immediate conditions

Most of the conditions in your Multimedia Fusion 2 Developer application are constantly tested. But some conditions, called immediate conditions, are executed only when the originating event occurs. For example, the key test condition only occurs when the user presses a key. These conditions can therefore be true at any moment in your application.

 

Here are some of the immediate conditions:

  • Collisions between objects
  • Collisions with the background
  • An object leaves or enters the frame
  • The user clicks an object, the frame, or a specific zone
  • The user presses a key
  • The player presses a key
  • "Start of application" conditions occur
  • The timer reaches a specific value
 

Normal conditions

Normal conditions are tested for in the order in which they appear in the Event editor. For example, if you have an event with a "Start of frame" condition and a "Compare the counter to a value" condition, the actions associated with the condition that appears first in the event line will occur first.

 

The Normal conditions include the following:

  • Comparison conditions
  • Special conditions
  • Object movement, animation, and direction conditions
  • Sound and music conditions
  • Storyboard Control object conditions
  • Create New Objects object conditions
  • Question & Answer object conditions
  • Counter object conditions
  • External conditions
 

Multimedia Fusion 2 Developer starts at the first event and moves down through the conditions within that event. If a condition affects several objects, each object is tested in turn. When Multimedia Fusion 2 Developer reaches the last event, it repeats the tests from the beginning, starting a new event cycle.


*1 exampleに関して参考→Getting the most of the Multimedia Fusion's runtime engine.のThe importance of the order of the events(英語)