VelAdd (SCTRL)

Started by JustNoPoint, October 31, 2015, 02:24:12 PM

Previous topic - Next topic

JustNoPoint

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