how to make a blank center dialog text

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.
Message
Author
kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

how to make a blank center dialog text

#1 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: how to make a blank center dialog text

#2 Post by Imperf3kt »

NVL mode might be of use to you.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#3 Post by kahmehkahzeh »

I did not find that anywhere, did I miss it somewhere? and that mode will still allow for decisions?

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#4 Post by kahmehkahzeh »

found something reading it now

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#5 Post 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.

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: how to make a blank center dialog text

#6 Post 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"
My avatar is courtesy of Mellanthe

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#7 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: how to make a blank center dialog text

#8 Post by Imperf3kt »

It sounds like you'd be better off either making images containing the text, or use the show text function
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#9 Post 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)

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: how to make a blank center dialog text

#10 Post 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
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#11 Post 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.

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: how to make a blank center dialog text

#12 Post 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.
My avatar is courtesy of Mellanthe

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#13 Post 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

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: how to make a blank center dialog text

#14 Post 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"
My avatar is courtesy of Mellanthe

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: how to make a blank center dialog text

#15 Post 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?

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]