[SOLVED] Text at specified coordinates?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
lucacron
Newbie
Posts: 2
Joined: Sun Aug 13, 2017 4:23 am
Contact:

[SOLVED] Text at specified coordinates?

#1 Post by lucacron »

[issue]Title pretty much sums it up. I have been googling for a few hours to know how to set the location of text on the screen.
Pseudo code:
show text "text" at x postion y position.[/issue]

Answers appreciated. Sorry this is a newb question
Last edited by lucacron on Sun Aug 13, 2017 5:23 am, edited 1 time in total.

User avatar
Pyr0
Newbie
Posts: 20
Joined: Mon Aug 07, 2017 4:34 pm
Contact:

Re: Text at specified coordinates?

#2 Post by Pyr0 »

Define a transform with the xpos and ypos you want and then use the at statement to use that transform in conjunction with your text.
Example:

Code: Select all

transform MyTextPosition:
    xpos 200
    ypos 200
    
label start:
    show text "hello" at MyTextPosition
    pause

lucacron
Newbie
Posts: 2
Joined: Sun Aug 13, 2017 4:23 am
Contact:

Re: [SOLVED] Text at specified coordinates?

#3 Post by lucacron »

Thank you :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]