Rope#reset()

reset(x, y) → {Phaser.Rope}

Resets the Rope. This places the Rope at the given x/y world coordinates and then
sets alive, exists, visible and renderable all to true. Also resets the outOfBounds state.
If the Rope has a physics body that too is reset.

Parameters
Name Type Description
x number

The x coordinate (in world space) to position the Sprite at.

y number

The y coordinate (in world space) to position the Sprite at.

Returns

This instance.

Source code: gameobjects/Rope.js (Line 125)
doc_phaser
2017-02-14 11:08:44
Comments
Leave a Comment

Please login to continue.