i have a text that counts the number of coins collected by the player:
I wish the text didn’t go off screen, like it’s happening in this screen
How can I make the text not pop off the screen?
the dollar should remain motionless, and the text added to its left
You’ll need to adjust the X position of the text object depending on its width, because the position uses the upper left corner of the object.
ah ok i thought it was enough to apply the anchor behavior.
sorry for my ignorance, how can i move the position of the text to the top right of the screen?
0 is the top.
SceneWindowWidth() is the right border, but the position uses the upper left corner, so you need to subtract the width of your object.
perfect thanks for your help I managed to solve