YesNoOk
avatar

Gravity (SCTRL) (Read 4089 times)

Started by Ricepigeon, October 19, 2015, 05:08:13 pm
Share this topic:
Gravity (SCTRL)
#1  October 19, 2015, 05:08:13 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Accelerates the player downwards, using the value of the player's "yaccel" constant.

Required parameters:
    none
Optional parameters:
    none

Example:
Code:
; Applies constant acceleration throughout state
trigger1 = 1
type = Gravity

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

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

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