Auto-forward text {w=1]{nw} flashing

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
User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Auto-forward text {w=1]{nw} flashing

#1 Post by Kinmoku »

Hi all,

I'm having a problem with some auto-forward text. I have a cut-scene which works in time to the music, but a flash occurs when the text windows disappear (I use a transform for this but it works fine until I use it with {w=}{p=} and {nw}). Is there another way to show auto-forward text? Or is this a Ren'Py glitch that needs to be fixed?

This is the animation/ transform I am using (works fine elsewhere):

Code: Select all

transform ffpopupcrop:
    subpixel True
    crop_relative True
    crop (0,0, 1.0, 1.0)

    on show:
        crop (0,0, 0.0, 0.0)
        pause 0.2
        crop (0,0, 0.2, 0.2)
        pause 0.2
        crop (0,0, 0.4, 0.4)
        pause 0.2
        crop (0,0, 0.6, 0.6)
        pause 0.2
        crop (0,0, 0.8, 0.8)
        pause 0.2
        crop(0,0, 1.0, 1.0)

    on hide:
        crop (0,0, 1.0, 1.0)
        pause 0.2
        crop (0,0, 0.8, 0.8)
        pause 0.2
        crop (0,0, 0.6, 0.6)
        pause 0.2
        crop (0,0, 0.4, 0.4)
        pause 0.2
        crop (0,0, 0.2, 0.2)
        pause 0.2
        crop(0,0, 0.0, 0.0)
These are the text boxes:

Code: Select all

    $ animate_textbox = "ff"
    h "I'm sorry, Master.{w=2.5}{nw}"
    h "You must leave now whilst you still can.{p=3.0}{nw}"
Inside screens.rpy, I have this:

Code: Select all

    window:
        id "window"
        background "gui bubble"
        
        if animate_textbox == "open":
            at bigbubble # This is used for the rest of the game: normal text boxes that do not contain {nw} or {w=}, and it works no problem...until I tested it with {nw} or {w=}, then it flashes as well
        elif animate_textbox == "ff":
            at ffpopupcrop
I really want to use auto-forward so this dialogue can to be timed with the music, though I may have to use images for this instead if it cannot be fixed or worked around.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot