Textbox jumping around when using dissolve (SOLVED)

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
champignonkinoko
Regular
Posts: 61
Joined: Sun Sep 07, 2014 8:51 pm
Contact:

Textbox jumping around when using dissolve (SOLVED)

#1 Post by champignonkinoko » Sun Jan 11, 2015 9:19 am

Hi all

I've recently encountered this issue and hope someone has the solution to this...

When I do

Code: Select all

    window hide
    show aki at center with dissolve
    window show
,

I want to keep the textbox there (instead of dissolving). So I used a

Code: Select all

window show
command to keep the window there.

However, this doesn't stop the textbox from dissolving. I want to keep the textbox there while the character appears with dissolve. Is this possible? Am I missing something?



Thanks for reading.
Last edited by champignonkinoko on Mon Jan 12, 2015 1:52 am, edited 3 times in total.

champignonkinoko
Regular
Posts: 61
Joined: Sun Sep 07, 2014 8:51 pm
Contact:

Re: Textbox jumping around when using dissolve

#2 Post by champignonkinoko » Sun Jan 11, 2015 11:08 pm

I've tried recreating the issue from a blank slate, but this issue recreated does not concern dissolve. It's where the textbox keeps jumping around (I think solving this might help with solving the 'dissolve' issue). The script and image files used are as attached.

I want the say_who_window to be layered on top of the textbox. In attempt to do this, I flipped the order between say_who_window and textbox

Code: Select all

    if not two_window:
        # The one window variant.
        window:
            id "window"
            has vbox:
                style "say_vbox"
            if who:
                text who id "who"
            text what id "what"
    else:
        # The two window variant.
        vbox:
            style "say_two_window_vbox"
            window:
                id "window"
                has vbox:
                    style "say_vbox"
                text what id "what"
            if who:
                window:
                    style "say_who_window"
                    text who:
                        id "who"
Renpy would, by default, draw the say_who_window below the textbox, causing the textbox to 'jump around' between dialogue and narration.

edit: This issue fixed now thanks to Arowana, leaving the dissolve issue to ponder :)

Code: Select all

    if not two_window:
        # The one window variant.
        $ two_window_variant = False
        window:
            id "window"
            has vbox:
                style "say_vbox"
            if who:
                text who id "who"
            text what id "what"
    else:
        # The two window variant.
        $ two_window_variant = True
        vbox:
            style "say_two_window_vbox"
            window:
                id "window"
                has vbox:
                    style "say_vbox"
                text what id "what"
        if who:
            window:
                style "say_who_window"
                text who:
                    id "who"
Does anyone know of a fix to this?
Attachments
textbox.png
script.rpy
(474 Bytes) Downloaded 23 times
screens.rpy
(13.83 KiB) Downloaded 30 times
options.rpy
(9.09 KiB) Downloaded 25 times
nameplate.png
nameplate.png (9.08 KiB) Viewed 354 times

Post Reply

Who is online

Users browsing this forum: Google [Bot]