In M.U.G.E.N, the VelMul State controller multiplies the player's velocity by the defined amount for as long as the controller is active. Like the Veladd controller, the controller is mostly used to simulate acceleration, although unlike the Veladd controller, Velmul can also be used to simulate the effect of friction.
- X = x_value (float)
- x_value is the value to multiply the player's horizontal velocity by. Defaults to 1.0 if omitted.
- Y = y_value (float)
- y_value is the value to multiple the player's vertical velocity by. Defaults to 1.0 if omitted.
[State 0, Example] type = VelMul trigger1 = animelemtime(2)=0 X = 0 Y = 0
Multiplies both the player's X and Y velocities by 0 on the beginning of the second animation element.
[State 220,VelMul] type = VelMul trigger1 = 1 X = 0.85
Multiplies the player's X velocity by 0.85 each tick for as long as the player is in the state. Since the Y parameter is omitted, the player's Y velocity is unaffected.