Language

Map.addBulletLauncher


Map.addBulletLauncher(string id, int depth, int x, int y, int direction, float delay, float speed, int bullet)

Description

Add a bullet launcher 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.
direction
0 = Up ; 1 = Right ; 2 = Down ; 3 = Left
delay
Time to wait between each bullet in second.
speed
Speed of the bullet in pixels per second.
bullet
Bullet image. Currently unused parameter.