[SOLVED] Center Text Problem

Hi! I use the (ScreenWidth / 2) - (Text.Width / 2) to put the text in the center.

The problem is when I full screen, this happens:

Anyone know how to fix it?

What happens if you use CameraCenterX() - (Text.Width/2) instead?

1 Like

It works in full screen, but when the window size changes it wasn’t. But I remembered that I already encountered and make a forum last year about this so I already fixed it now. If anyone will encounter this, here’s what I do:

Just use an object in your scene and use it as a position where you want to place the text and use this:
Object.X() + Object.Width() / 2

Anyways, thanks! @MrMen