DeccelerateLayerY

From Moondust Wiki
Revision as of 10:06, 5 April 2017 by Fun2 (talk | contribs) (Removed unnecessary blank lines from the Notes section.)
Jump to navigation Jump to search

Prototype

DeccelerateLayerY,LAYER NUMBER,DECCEL TO,-,-,Active time,SPEED

Description

Puts a friction or air resistance-like decceleration on a layer. The layer's speed will decrease by SPEED every frame, to a minimum of DECCEL TO.

Notes

Deccelerate by a small amount or you won't notice any Decceleration.

Examples

// Default layer will eventually deccelerate down to 0 speed
DeccelerateLayerY,0,0,0,0,0,0.01