EnvShake (SCTRL) (Read 2314 times)

Started by Just No Point, October 28, 2015, 07:51:47 PM
Share this topic:
EnvShake (SCTRL)
#1  October 28, 2015, 07:51:47 PM
  • ******
Causes the screen to shake vertically.

Required parameters:
time = shake_time (int)
Specifies the number of ticks to shake the screen for.

Optional parameters:
freq = shake_speed (float)
shake_speed is a float between 0 (slow shake) to 180 (fast shake). Defaults to 60.

ampl = shake_amplitude (int)
The larger the amplitude, the farther the screen shakes up and down. A negative amplitude means that the screen will shake down first. Defaults to -4 in 240p, -8 in 480p, -16 in 720p.

phase = phase_offset (float)
Specifies the phase offset for the shaking. The default is 0, unless the frequency multiplier is 90 or greater. In this case, the default phase offset is 90.