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