Gravity (SCTRL)

Started by Ricepigeon, October 19, 2015, 05:08:13 PM

Previous topic - Next topic

Ricepigeon

Accelerates the player downwards, using the value of the player's "yaccel" constant.

Required parameters:
    none
Optional parameters:
    none

Example:

; Applies constant acceleration throughout state
trigger1 = 1
type = Gravity


Additional Notes:
The Gravity SCTRL is equivalent to the following SCTRL;


[State 200, VelAdd]
type = veladd
trigger1 = ...
y = const(movement.yaccel)


As such, the Gravity SCTRL can be considered deprecated in most situations.