The number “1” is in the center… let’s say that’s the coin of the player…
So if somehow the coin adds like plus 1000 (for example the player receive a reward or something that adds his coin)
This happens in the preview:
To centre a text, you need to change the position of the Text object. To get the width of your scene, we use SceneWindowWidth(). So we will change the X position of our Text object set to SceneWindowWidth()/2-TextObject.Width()/2.
What we did here is, we got the centre of our screen by dividing the SceneWindowWidth() by 2 and placed the centre of our TextObject (which we got using TextObject.Width()/2) there.
@Muzan If you can set the coordinates to the middle of the object, how does this differ from your method? I am clarifying in order to understand (and know in the future), perhaps there are some subtleties in this moment.