Page 1 of 2

how to make a blank center dialog text

Posted: Thu Apr 13, 2017 6:59 am
by kahmehkahzeh
So I am making a game that involves no images, and what I am trying to do is remove the borders the fast forward dialog.

Where someone would talk it would be in the center in large letters, no dialog BG no rewind fast forward options, just a click to next.

in a sense, all it will be is is text typing on the screen (music and sounds occuring in the background.) with the possibility of 1 background change, the game will have 3 endings based on a series of 12 questions.

So it is really just a text game with one image in the title.

So what I need to know is how to remove all frills and center all dialog with size and font desired.

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 7:02 am
by Imperf3kt
NVL mode might be of use to you.

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 7:07 am
by kahmehkahzeh
I did not find that anywhere, did I miss it somewhere? and that mode will still allow for decisions?

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 7:10 am
by kahmehkahzeh
found something reading it now

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 7:30 am
by kahmehkahzeh
So I see how that works, but it wasn't clear on how remove the frills and center the text, and is there a fade in and fade out of text? I think I am blind, and is there a way to disable options on preferences and such, so I can set the balance for a solid setting so they just turn up or down their own volume? instead of each option? (not trying to make multiple questions but I really want to remove all of these extras and did not find how I can make this insanely basic. )

I have figured out sounds and music and BG.

But I still can't center the text, its 4:30 am sorry if I am rambling, please let me know if I can clarify my desire.

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 8:06 am
by indoneko
What kind of "centered text" do you have in mind? Can you give a mock-up image to illustrate what you meant?

I would just use :
centered "This is the text"

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 9:10 pm
by kahmehkahzeh
well its just centered, as in the center of the screen, and as there is more text entered no matter how much it centeres itself in the screen, but just like in the Visual part, each sentence/paragraph only appears one at a time. not several per page.

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 11:11 pm
by Imperf3kt
It sounds like you'd be better off either making images containing the text, or use the show text function

Re: how to make a blank center dialog text

Posted: Thu Apr 13, 2017 11:24 pm
by kahmehkahzeh
So by making it all images I see how that could work because I could make the scenes fade in and out correct?
On the other note, what is show text function I did not find that, and again is there a way to eliminate the options on the page? (rewind fast forward etc)

Re: how to make a blank center dialog text

Posted: Fri Apr 14, 2017 1:35 am
by Imperf3kt
By "show text" I literally meant just that.

Code: Select all

show text "Some text"
show text "Some more text"
I think it centers by default, but if it doesn't, you can just use
show text "some text" at center

I'll go start my main computer and see if I can find an example so I can be sure I've given you the exact method.
I need to turn it on anyway so I can check how to wrap long strings of screen text over several lines since I've forgotten :P

Re: how to make a blank center dialog text

Posted: Fri Apr 14, 2017 3:46 am
by kahmehkahzeh
So I tried using show text, and it does in fact center it, but it does not switch between it always shows the LAST thing show text is set for.

Re: how to make a blank center dialog text

Posted: Fri Apr 14, 2017 4:08 am
by indoneko
@kahmehkahzeh : How did you code it? Please copy-paste your script here (use the

Code: Select all

 tag so you won't mess the spacing)


You could also define a Character which automatically centers the text, but let's see what Imperf3kt has in store for you first.

Re: how to make a blank center dialog text

Posted: Fri Apr 14, 2017 4:17 am
by kahmehkahzeh
I will tell you now its almost the basic script. I need to get all of this resolved before I dive full on into it, I have the entire script done.

Code: Select all

# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define n = Character("None", kind=nvl, colof="#c8c8ff")


# The game starts here.
label start:
   
    play music "A.wav" loop
    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene bg room

    # This shows a character sprite. A placeholder is used, but you can
    # replace it by adding a file named "eileen happy.png" to the images
    # directory.

    show text "Ssdfaefawgb ase "
    show text "Some text"
    
    # These display lines of dialogue.

    "Hello, world."

    n "You've created a new Ren'Py game."

    n "Once you add a story, pictures, and music, you can release it to the world!"

    # This ends the game.

    return

Re: how to make a blank center dialog text

Posted: Fri Apr 14, 2017 4:43 am
by indoneko

Code: Select all

show text "Ssdfaefawgb ase "
show text "Some text"
No no no... that's not the right way to do it.
When we use "show" command, Renpy doesn't actually display the text right away. It will wait until it has any interaction with the user (for example, a "Pause", or a "Say"). So, you add an interaction between the two shows :

Code: Select all

show text "Ssdfaefawgb ase "
Pause(3.0)  ## delay for 3 seconds
show text "Some text"

Re: how to make a blank center dialog text

Posted: Fri Apr 14, 2017 4:51 am
by kahmehkahzeh
So using the pause it waits for that time then changes over to the next text after the time allotted where say is the interaction of the user?