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)
Please login to continue.