LayerXSpeed

From PGE Wiki
Jump to navigation Jump to search

Prototype

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

Description

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

Examples

// Move layer 0 ("default" layer) to the right at speed 2.5. Stop after 10 seconds
LayerXSpeed,0,1,0,0,600,2.5

// Move layer 0 ("default" layer) to the left at speed 2.5. Stop after 10 seconds
LayerXSpeed,0,1,0,0,600,-2.5