make the centered text seeable

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
demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

make the centered text seeable

#1 Post by demondog29 »

I want to use the centered text but
http://mayhem-twins.tumblr.com/private/ ... xoB1ra8nnc

as you can see here, the centered text just cant be seen.

is their any possible way for me to have like a black text box behind it or at least have it somehow see able?

Any ideas are appreciated.

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: make the centered text seeable

#2 Post by isobellesophia »

I think when you make a new project, you should pick the black background instead of a white background. (Its my opinion how you start a new project on Ren'py by picking colors.)
color.png
So, this is what you are talking about?

If you want to change the color text, just open the file named gui.rpy.

You can at least change some colors in the game. :D
Sry bad english :mrgreen:
I am a friendly user, please respect and have a good day.


Image

Image


demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

Re: make the centered text seeable

#3 Post by demondog29 »

isobellesophia wrote: Fri Feb 08, 2019 7:01 am I think when you make a new project, you should pick the black background instead of a white background. (Its my opinion how you start a new project on Ren'py by picking colors.)

color.png

So, this is what you are talking about?

If you want to change the color text, just open the file named gui.rpy.

You can at least change some colors in the game. :D
Sry bad english :mrgreen:


thats a good idea, but is there a way i could mayb put a text box in the center or something like that so that it can be seeable without restarting?

User avatar
Wight
Regular
Posts: 47
Joined: Mon Jan 07, 2019 5:40 pm
Completed: A Transient Experiment
itch: wight
Contact:

Re: make the centered text seeable

#4 Post by Wight »

There's a few things you can do. You can use text tags to change the text, such as the color of it.
https://www.renpy.org/doc/html/text.html#text-tag-color

Code: Select all

show text "{color=#000000}LOOK AT ME, I'M TEXT!{/color}"
But that can get tedious if you're using it often on white backgrounds. In which case, you can put this in your script:

Code: Select all

image blacktext = ParameterizedText(xalign=0.5, yalign=0.5, color="#000000")
And then instead of "show text", you say "show blacktext" whenever there's a white background like that.
Alternatively, you can keep the text white and just give it a black outline. Like the one above, you put this in script:

Code: Select all

image outlinedtext = ParameterizedText(xalign=0.5, yalign=0.5, color="#ffffff", outlines=[(1, "#000000", 0, 0)])
And instead of "show text", you say "show outlinedtext". You can also edit how the outline works, in case you want to make it thicker or stick out a certain way.
https://www.renpy.org/doc/html/style_pr ... y-outlines

demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

Re: make the centered text seeable

#5 Post by demondog29 »

Wight wrote: Sun Feb 10, 2019 1:23 am There's a few things you can do. You can use text tags to change the text, such as the color of it.
https://www.renpy.org/doc/html/text.html#text-tag-color

Code: Select all

show text "{color=#000000}LOOK AT ME, I'M TEXT!{/color}"
But that can get tedious if you're using it often on white backgrounds. In which case, you can put this in your script:

Code: Select all

image blacktext = ParameterizedText(xalign=0.5, yalign=0.5, color="#000000")
And then instead of "show text", you say "show blacktext" whenever there's a white background like that.
Alternatively, you can keep the text white and just give it a black outline. Like the one above, you put this in script:

Code: Select all

image outlinedtext = ParameterizedText(xalign=0.5, yalign=0.5, color="#ffffff", outlines=[(1, "#000000", 0, 0)])
And instead of "show text", you say "show outlinedtext". You can also edit how the outline works, in case you want to make it thicker or stick out a certain way.
https://www.renpy.org/doc/html/style_pr ... y-outlines
Wait can I outline centered texts?

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: make the centered text seeable

#6 Post by isobellesophia »

demondog29 wrote: Wed Feb 13, 2019 5:28 pm
Wight wrote: Sun Feb 10, 2019 1:23 am There's a few things you can do. You can use text tags to change the text, such as the color of it.
https://www.renpy.org/doc/html/text.html#text-tag-color

Code: Select all

show text "{color=#000000}LOOK AT ME, I'M TEXT!{/color}"
But that can get tedious if you're using it often on white backgrounds. In which case, you can put this in your script:

Code: Select all

image blacktext = ParameterizedText(xalign=0.5, yalign=0.5, color="#000000")
And then instead of "show text", you say "show blacktext" whenever there's a white background like that.
Alternatively, you can keep the text white and just give it a black outline. Like the one above, you put this in script:

Code: Select all

image outlinedtext = ParameterizedText(xalign=0.5, yalign=0.5, color="#ffffff", outlines=[(1, "#000000", 0, 0)])
And instead of "show text", you say "show outlinedtext". You can also edit how the outline works, in case you want to make it thicker or stick out a certain way.
https://www.renpy.org/doc/html/style_pr ... y-outlines
Wait can I outline centered texts?
Yes, just set a code of colors you want, so you can see your text :)
I am a friendly user, please respect and have a good day.


Image

Image


demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

Re: make the centered text seeable

#7 Post by demondog29 »

Wait can I outline centered texts?
[/quote]

Yes, just set a code of colors you want, so you can see your text :)
[/quote]


i was trying but I can't seem to do it? could you show me how it supposed to look?

User avatar
Wight
Regular
Posts: 47
Joined: Mon Jan 07, 2019 5:40 pm
Completed: A Transient Experiment
itch: wight
Contact:

Re: make the centered text seeable

#8 Post by Wight »

You can put this into your script. This will make white text with a black outline.

Code: Select all

image outlinedtext = ParameterizedText(xalign=0.5, yalign=0.5, color="#ffffff", outlines=[(1, "#000000", 0, 0)])
And whenever you want outlined centered text, put in something like this instead of show text

Code: Select all

show outlinedtext "LOOK AT ME, I'M OUTLINED TEXT!"
You can rename "outlinedtext" to something easier to type out, if needed.

demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

Re: make the centered text seeable

#9 Post by demondog29 »

I put it on the script, but it just skips over it when i try play it?

User avatar
Wight
Regular
Posts: 47
Joined: Mon Jan 07, 2019 5:40 pm
Completed: A Transient Experiment
itch: wight
Contact:

Re: make the centered text seeable

#10 Post by Wight »

Is there a scene transition after the text? If there's no dialogue following it, then it's going just going to show it very briefly. Under it, put "pause". This will make it so that the text stays on the screen and it will only proceed once the player clicks again.

Code: Select all

show outlinedtext "LOOK AT ME, I'M OUTLINED TEXT!"
pause

demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

Re: make the centered text seeable

#11 Post by demondog29 »

Wight wrote: Thu Feb 28, 2019 7:04 am Is there a scene transition after the text? If there's no dialogue following it, then it's going just going to show it very briefly. Under it, put "pause". This will make it so that the text stays on the screen and it will only proceed once the player clicks again.

Code: Select all

show outlinedtext "LOOK AT ME, I'M OUTLINED TEXT!"
pause
This works!! Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users