Setting text position?

I’ve been looking all over the manual, but I can’t seem to find how to set the position of text on screen. This is a problem as right now it renders in the middle of the screen, and so far attempts to use the NodePath’s set_x, set_y, or set_z functions seem to make the text disappear (or render off-screen, maybe). I can’t find any documentation on how to do it.

How do I do it?

Maybe you’re not using the right coordinate ranges. AFAIK, the screen ranges from (-1, 0, -1) in the lower-left corner to (1, 0, 1) in the upper-right corner. This is for render2d. For aspect2d, it’s from (-aspectratio, 0, -1) to (aspectratio, 0, 1).

There we go. I was rendering the text off-screen. Thank you :slight_smile: