MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Message
Author
Jaymer
Regular
Posts: 38
Joined: Fri Aug 01, 2008 3:35 am
Location: Australia
Contact:

MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#1 Post by Jaymer »

Yeah, I have multiple Questions!!

1) Can you move the name of the speaking character in a text box to the right?
2) Can you change the font of the speaking character in a text box?
3) Can you fade in and out a centered text?
4) Can you change the opacity of the text box?
5) Can you give the Main Menu a transition when entering and exiting the game?

Porbably more questions to come...

N0UGHTS
Miko-Class Veteran
Posts: 516
Joined: Mon Jul 28, 2008 7:47 pm
Location: California, USA
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#2 Post by N0UGHTS »

Wrong sub-forum. Might as well post before it shows up as nonexistent or my internet dies...

#2
More on registering SFonts here.

Code: Select all

        # Register the sfont contained in asfont22 as "subfont".
        renpy.register_sfont('subfont', 22,
                             filename="asfont22.png",
                             kerns=asfont22.kerns,
                             spacewidth=4)

    $ esub = Character("Eileen",
                       color="#c8ffc8",
                       what_font="subfont",
                       what_black_color="#282")
#4
I think you'll have to make your own PNG.

#5 is already in options.rpy.

Code: Select all

    ## Used when entering the game menu from the main menu.
    config.main_game_transition = None

    ## Used when returning to the main menu from the game.
    config.game_main_transition = None

    ## Used when entering the main menu from the splashscreen.
    config.end_splash_transition = None

    ## Used when entering the main menu after the game has ended.
    config.end_game_transition = None
World Community Grid
"Thanksgiving is a day for Americans to remember that family is what really matters.
"The day after Thanksgiving is when Americans forget that and go shopping." —Jon Stewart
Thank you for playing Alter Ego. You have died.

Aenakume
Regular
Posts: 182
Joined: Mon Aug 11, 2008 4:38 am
Projects: Arts... i hate arts -_-
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#3 Post by Aenakume »

Jaymer wrote:1) Can you move the name of the speaking character in a text box to the right?
Oh ya. Check out the demo to see some of the stuff you can do. There's a lot of ways to do what you're askin that i can think of, and which one is best depends on what kind of look you're going for exactly. Try putting these two lines in an init block:

Code: Select all

$ style.say_vbox.xfill = True
$ style.say_label.xalign = 1.0
Jaymer wrote:2) Can you change the font of the speaking character in a text box?
You can have every character with their own font. Again check the demo to see. To use font.ttf while talking:

Code: Select all

$ e = Character('Eileen', what_font='font.ttf')
Jaymer wrote:3) Can you fade in and out a centered text?
Yes, and again, this is done in the demo. ^_^; You really should check out the demo source:

Code: Select all

show black
with dissolve

centered "Centred text."

hide black
with dissolve
Course, there's a ton of other ways to do this, too, if that's not exactly what you're looking for.
Jaymer wrote:4) Can you change the opacity of the text box?
Yes, with styles. In an init section you can do this:

Code: Select all

$ style.window.background = '#0002'
Change the 2 to 8, 9 or a to make it more opaque, f to make it totally black.
Jaymer wrote:5) Can you give the Main Menu a transition when entering and exiting the game?
Yes, if you look in options.rpy for your game. Go down to line 200 or so... and see the list of transitions you can change. ^_^;
“You can lead a fool to wisdom, but you cannot make him think.”

Jaymer
Regular
Posts: 38
Joined: Fri Aug 01, 2008 3:35 am
Location: Australia
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#4 Post by Jaymer »

I love you~~
I might have some more questions to come so... yeah...
Anyway, where should've I put this? -always gets confusssssed-

N0UGHTS
Miko-Class Veteran
Posts: 516
Joined: Mon Jul 28, 2008 7:47 pm
Location: California, USA
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#5 Post by N0UGHTS »

Try the Ren'Py sub-forum.

I suggest combing through the demo, the Cookbook, and maybe the Reference Manual if you think you can handle some h4x0r 5p33k.
World Community Grid
"Thanksgiving is a day for Americans to remember that family is what really matters.
"The day after Thanksgiving is when Americans forget that and go shopping." —Jon Stewart
Thank you for playing Alter Ego. You have died.

Jaymer
Regular
Posts: 38
Joined: Fri Aug 01, 2008 3:35 am
Location: Australia
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#6 Post by Jaymer »

Thanks c:
Also:

6) Can you make a click-to-continue indicator for normal mode, (not nvl_mode)?

N0UGHTS
Miko-Class Veteran
Posts: 516
Joined: Mon Jul 28, 2008 7:47 pm
Location: California, USA
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#7 Post by N0UGHTS »

Code: Select all

    # With a nestled click-to-continue indicator.
    $ ectc = Character('Eileen',
                       color="#c8ffc8",
                       ctc=anim.Blink("arrow.png"))


    # With a fixed-position ctc indicator.
    $ ectcf = Character('Eileen',
                        color="#c8ffc8",
                        ctc=anim.Filmstrip("sakura.png", (20, 20), (2, 1), .30, xpos=760, ypos=560, xanchor=0, yanchor=0),
                        ctc_position="fixed")
It's in the demo. And nestled is right after the text...
World Community Grid
"Thanksgiving is a day for Americans to remember that family is what really matters.
"The day after Thanksgiving is when Americans forget that and go shopping." —Jon Stewart
Thank you for playing Alter Ego. You have died.

Jaymer
Regular
Posts: 38
Joined: Fri Aug 01, 2008 3:35 am
Location: Australia
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#8 Post by Jaymer »

Another Question... too many...
7) What is a good size for character mugs? Like the reactions and what not. (My game window is 640x480)

N0UGHTS
Miko-Class Veteran
Posts: 516
Joined: Mon Jul 28, 2008 7:47 pm
Location: California, USA
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#9 Post by N0UGHTS »

640 x 480? Wow... :Remembers back to '03:

I've actually got a collection of screencapped textbox sprites... The ones from my 640 games are about 155 x 165 pixels.
World Community Grid
"Thanksgiving is a day for Americans to remember that family is what really matters.
"The day after Thanksgiving is when Americans forget that and go shopping." —Jon Stewart
Thank you for playing Alter Ego. You have died.

ioze
Newbie
Posts: 2
Joined: Sun Jul 06, 2008 2:08 pm
Projects: Bluberry Jam
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#10 Post by ioze »

N0UGHTS wrote:

Code: Select all

    # With a nestled click-to-continue indicator.
    $ ectc = Character('Eileen',
                       color="#c8ffc8",
                       ctc=anim.Blink("arrow.png"))


    # With a fixed-position ctc indicator.
    $ ectcf = Character('Eileen',
                        color="#c8ffc8",
                        ctc=anim.Filmstrip("sakura.png", (20, 20), (2, 1), .30, xpos=760, ypos=560, xanchor=0, yanchor=0),
                        ctc_position="fixed")
It's in the demo. And nestled is right after the text...
what about non character ctc?

example :
ectcf"...i must be dreaming..."
"And then i open my eyes..." --> if something like this, how we add ctc pics?

:roll:
Image
My first Project : RO Based Visual Novel!

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#11 Post by PyTom »

"Hello world."

is equivalent to

narrator "Hello world."

so if you redefine narrator, it will change how that looks.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jaymer
Regular
Posts: 38
Joined: Fri Aug 01, 2008 3:35 am
Location: Australia
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#12 Post by Jaymer »

lol new question + topic bump!!

Can you use an image crop for credits?
Say your game screen is 640 x 480, can you use a 640 x 1024 sized image as credits? Like, make it scroll down, (the image that is), to the end?

N0UGHTS
Miko-Class Veteran
Posts: 516
Joined: Mon Jul 28, 2008 7:47 pm
Location: California, USA
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#13 Post by N0UGHTS »

Ren'Py Demo, Positions and Movement.
World Community Grid
"Thanksgiving is a day for Americans to remember that family is what really matters.
"The day after Thanksgiving is when Americans forget that and go shopping." —Jon Stewart
Thank you for playing Alter Ego. You have died.

Jaymer
Regular
Posts: 38
Joined: Fri Aug 01, 2008 3:35 am
Location: Australia
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#14 Post by Jaymer »

Another Question 8DD
How can I make it so that there is no game menu, or main menu?
-just a short game lol-

delta
Epitome of Generic
Posts: 525
Joined: Sat Dec 22, 2007 12:59 pm
Projects: yes
Contact:

Re: MULTIPLE QUESTIONS!? ARGHH!!? lolwut?

#15 Post by delta »

>no main menu

Code: Select all

label main_menu:
    $ renpy.jump_out_of_context("start")
>no game menu

Code: Select all

init -1 python:
    def gm_catcher():
        ui.add(renpy.Keymap(game_menu=ui.returns(None)))

    config.overlay_functions.append(gm_catcher)
Both not tested and typed from memory, but I think they should work.
The rest is left as an exercise for the reader.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot]