move(x, y, wrap) → {Phaser.BitmapData}
Shifts the contents of this BitmapData by the distances given.
The image will wrap-around the edges on all sides if the wrap argument is true (the default).
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x | integer | The amount of pixels to horizontally shift the canvas by. Use a negative value to shift to the left, positive to the right. | ||
y | integer | The amount of pixels to vertically shift the canvas by. Use a negative value to shift up, positive to shift down. | ||
wrap | boolean | <optional> | true | Wrap the content of the BitmapData. |
Returns
This BitmapData object for method chaining.
- Source code: gameobjects/BitmapData.js (Line 240)
Please login to continue.