Vel

From M.U.G.E.N Wiki

Jump to: navigation, search



Trigger: Vel

Gets the value of the player's velocity. You must specify the component that you want to check, eg. "Vel Y" to check the Y-velocity.

Format:
Vel [component]
Arguments:
[component]
X, Y
Return type:
float
Error conditions:
none
Details:
For Vel X, a positive value indicates that the player is moving forward. (This behavior is the opposite of HitVel X's behavior.) For Vel Y, a positive value indicates that the player is moving downward.

Example:

trigger1 = Vel Y >= 0
  True when the player is not moving upward.


Personal tools