My dialogue is stuck! [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
krisisNotcover_
Newbie
Posts: 4
Joined: Fri Apr 05, 2024 11:29 am
Projects: Outer Worldly Shenanigans
Organization: N/A
Tumblr: krisisnotcoverlu
Location: Philippines
Discord: vclisa.
Contact:

My dialogue is stuck! [SOLVED]

#1 Post by krisisNotcover_ »

Hello! I need some help and I am fairly new to coding. I asked a member on Discord how to make QTE, but after putting in the code for some reason after you miss the option, the dialogue just gets stuck!
I accidentally posted this in a different section, sorry...

Here's the code:


Code: Select all

default downer = 0

screen QTEdown(rangeD, missed_event):
    on "show" action SetVariable("downer", rangeD)
    frame:
        xalign 0.5
        yalign 0.0
        hbox:
            timer 0.1 action If(0 < downer, true = SetVariable("downer", downer - 0.1), false = [Hide("timerDown"), Jump(missed_event)]) repeat True

            bar:
                value AnimatedValue(value=downer, range=rangeD, delay= 0.5)
                xalign 0.0
                yalign 0.0
                xmaximum 200


label goingtosection:

    show screen QTEdown(5, "missedit") #seconds to fail, label to jump on fail
    menu:
        "(Catch the shelf!)":
            hide screen QTEdown
            jump choice1_catch

        "(Pull him away)":
            hide screen QTEdown
            jump choice2_pull
Last edited by krisisNotcover_ on Sat Apr 13, 2024 1:03 am, edited 1 time in total.
krisisnotherecOver!

User avatar
Alex
Lemma-Class Veteran
Posts: 3095
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: My dialogue is stuck!

#2 Post by Alex »

krisisNotcover_ wrote: Tue Apr 09, 2024 11:56 am ...after you miss the option, the dialogue just gets stuck!...
When time is gone the timer makes the game jump to label, stored in 'missed_event' variable, and hides the 'timerDown' screen. But 'QTEdown' screen is still shown, and timer make the game jump to label, stored in 'missed_event' variable, and hides the 'timerDown' screen...

Post Reply

Who is online

Users browsing this forum: Alex, Google [Bot]