Sets the alignment of the points in this Rope to be horizontal, in a strip format.
Calling this method will reset this Rope. The current points, vertices, colors and alpha values will be reset to thoes values given as parameters.
name | type | arguments | description |
---|---|---|---|
points | number | Array.<Phaser.Types.Math.Vector2Like> | <optional> |
An array containing the vertices data for this Rope, or a number that indicates how many segments to split the texture frame into. If none is provided the current points length is used. |
colors | number | Array.<number> | <optional> |
Either a single color value, or an array of values. |
alphas | number | Array.<number> | <optional> |
Either a single alpha value, or an array of values. |
This Game Object instance.