offset(dx, dy) → {Phaser.Rectangle}
Adjusts the location of the Rectangle object, as determined by its top-left corner, by the specified amounts.
Parameters
Name | Type | Description |
---|---|---|
dx | number | Moves the x value of the Rectangle object by this amount. |
dy | number | Moves the y value of the Rectangle object by this amount. |
Returns
This Rectangle object.
- Source code: geom/Rectangle.js (Line 55)
Please login to continue.