That's quite easy to do.
You can get the sprite dimensions by using
sprite width and
sprite height. Then you scoop up on the screen dimensions in a similar way using
screen width and
screen height.
To center the sprite, you then simply offset it to half the screen width / height, subtracted by half the sprite width / height.
Like so:
rem Centre sprite
sprite id, (screen width() - sprite width(id)) / 2.0, (screen height() - sprite height(id)) / 2.0, imgID
"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.