move()
Move the object to a new position. Same as setPosition().
Parameters
Once an object item has been created, you can use the following function:
item.move(x, y)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The new horizontal position, in pixels. |
y |
int or float |
required | The new vertical position, in pixels. |