VelAdd

From M.U.G.E.N Wiki

Jump to: navigation, search



State Controller: VelAdd

Adds the specified amounts to the player's velocity. A positive x velocity is in the direction that the player is facing, while a positive y velocity is downward on the screen.

Required parameters:
none
Optional parameters:
x = x_value (float)
Specifies the value to add to the player's x-velocity.
y = y_value (float)
Specifies the value to add to the player's y-velocity.

Example:

; Applies constant gravity to the player
trigger1 = 1
type = VelAdd
y = 0.45


Personal tools