AnimElemNo/ja

From M.U.G.E.N Wiki

Jump to: navigation, search


This page is in progress of being translated to ja. You can help translating it or go to another language version that follows:



Trigger: AnimElemNo

Returns the number of the animation element in the current action that would be displayed at the specified time. The argument to AnimElemNo represents the time to check, expressed in game ticks, relative to the present.

Format:
AnimElemNo(exprn)
Arguments:
exprn
Expression that evaluates to the time offset (int).
Return type:
int
Error conditions:
Returns SFalse if you try to check a time that would fall before the start of the current action.
Notes:
If the action is currently within its looping portion, then it is assumed to have been looping forever. That is, no matter how far into the past you check, AnimElemNo will always return an element number that lies within the looping portion of the action.

Examples:

trigger1 = AnimElemNo(0) = 2
  True when the animation element to be displayed 0 ticks in the
  future (i.e., now) is element 2. This is equivalent to:
    trigger1 = AnimElem = 2, >= 0
    trigger1 = AnimElem = 3, < 0

trigger1 = AnimElemNo(2) = 4
  True when the animation element that will be displayed two ticks
  from now is element 4. This is equivalent to:
    trigger1 = AnimElem = 4, >= -2
    trigger1 = AnimElem = 5, < -2