Phaser API Documentation

  Version: 
setVertical([points], [colors], [alphas])

Description:

Sets the alignment of the points in this Rope to be vertical, in a column 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.

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.

Returns:
Description:

This Game Object instance.

Since: 3.23.0