new BHell_Mover_Base()
Mover base class. Handles complex movements for other objects (mostly enemies).
Methods
initialize()
Mover_Base constructor.
move(oldX, oldY, speed) → {Array}
Determines the new coordinates of the owner. The base class simply moves downwards.
Parameters:
Name | Type | Description |
---|---|---|
oldX |
Old x coordinate. |
|
oldY |
Old y coordinate. |
|
speed |
Movement speed (in pixels per frame). |
Returns:
New coordinates ret[0]: x axis, ret[1]: y axis.
- Type
- Array