you can use the CENTER_X and CENTER_Y flags to make the text position be centered on the pos_x and pos_y position. then just set the pos_x and y to half the screen_size.
you can also find the width of the text using str_width and use that