Text position

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
Newprogrammer
Newbie
Posts: 17
Joined: Sat Oct 20, 2018 10:28 am
Contact:

Text position

#1 Post by Newprogrammer »

Hello guys, have a problem, i want to show a text at a certain position in the screen but when i try to use the statement xpos and ypos an error outcomes.

Code: Select all

 show text "{b} hello {/b}" xpos 395 ypos 15 xalign 1.0 
Can someone help me?

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Text position

#2 Post by Per K Grok »

Newprogrammer wrote: Wed Nov 28, 2018 2:57 pm Hello guys, have a problem, i want to show a text at a certain position in the screen but when i try to use the statement xpos and ypos an error outcomes.

Code: Select all

 show text "{b} hello {/b}" xpos 395 ypos 15 xalign 1.0 
Can someone help me?
Remove "xalign 1.0". It contradicts "xpos 395".

You could try this

Code: Select all

    show text "{b} hello {/b}":
        xpos 395
        ypos 15

Newprogrammer
Newbie
Posts: 17
Joined: Sat Oct 20, 2018 10:28 am
Contact:

Re: Text position

#3 Post by Newprogrammer »

It works, thanks a lot

Post Reply

Who is online

Users browsing this forum: No registered users