Skip to content

move()

Move the object to a new position.

button.move(x, y)

Same as setPosition().

Parameters

button.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.