Language

Map.addPlateform


Map.addPlateform(string id, int depth, int x, int y, int sprite, int x1, int x2, float speed, int type, int direction)

Description

Add a plateform to the map.

Parameters

id
Unique ID of the entity.
depth
The depth of the entity. Between 0 and 20.
x
X coordinate.
y
Y coordinate.
sprite
Number of the sprite to use. Between 1 and 3.
x1
Offset in left or up of the plateform.
x2
Offset in right or down of the plateform.
speed
Speed of the plateform in pixel per second.
type
Type. 0 = Solid ; 1 = Artwork ; 2 = Kill on touch
direction
0 = Up-Down ; 1 = Down-Up ; 2 = Left-Right ; 3 = Right - Left