BitmapData#moveV()

moveV(distance, wrap) → {Phaser.BitmapData}

Shifts the contents of this BitmapData vertically.

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

Please login to continue.