LayerYSpeed

From PGE Wiki
Jump to navigation Jump to search

Prototype

LayerYSpeed,LAYER NUMBER,STOP?,-,-,Active time,SPEED

Description

Sets the Y (up and down) speed of LAYER NUMBER to SPEED. If STOP? is 1, the layer stops when this command ends.

Examples

// Move layer 0 ("default" layer) down at speed 2.5. Stop after 10 seconds
LayerYSpeed,0,1,0,0,600,2.5

// Move layer 0 ("default" layer) up at speed 2.5. Stop after 10 seconds
LayerYSpeed,0,1,0,0,600,-2.5