BitmapData#moveH()

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)
doc_phaser
2017-02-14 10:37:07
Comments
Leave a Comment

Please login to continue.