Moves the current sprite to a new position within the image.
- x
- The left position of the sprite within the image.
- y
- The top position of the sprite within the image.
The x and y positions are in pixels and are with respect to the image. Because a sprite may be a non rectangular region, the x and y positions are the top and left coordinates of a rectangle which bounds the sprite.
This method fails if there is no current sprite.