Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
You need to set ox and oy parameters to halved values of width and height of the sprite. So, if the @sprite is 100 pixels wide, and 200 pixels high, you should do it like this:
@sprite.ox = 50
@sprite.oy = 100