Page 1 of 1

re: renpy QTE tutorial question

Posted: Fri Dec 07, 2018 8:53 pm
by monkeykg
viewtopic.php?f=51&t=50766

in this thread it explains how to install this basic QTE code, but while I got it working, I'm having trouble figuring out how to switch it from click input to button input mode. Anyone familiar with this code?

Re: re: renpy QTE tutorial question

Posted: Sat Dec 08, 2018 4:50 pm
by Alex
You need to copy/paste the code for qte_button screen (it's at the end of first post) and change

Code: Select all

label qte_setup(time_start, time_max, interval, trigger_key, x_align, y_align):

    $ time_start = time_start
    $ time_max = time_max
    $ interval = interval
    $ trigger_key = trigger_key
    $ x_align = x_align
    $ y_align = y_align

    call screen qte_simple
    # can change to call screen qte_button to switch to button mode

    $ cont = _return
    # 1 if key was hit in time, 0 if key not

    return
to

Code: Select all

label qte_setup(time_start, time_max, interval, trigger_key, x_align, y_align):

    $ time_start = time_start
    $ time_max = time_max
    $ interval = interval
    $ trigger_key = trigger_key
    $ x_align = x_align
    $ y_align = y_align

    call screen qte_button # <---
    # can change to call screen qte_button to switch to button mode

    $ cont = _return
    # 1 if key was hit in time, 0 if key not

    return

Re: re: renpy QTE tutorial question

Posted: Sun Dec 16, 2018 2:19 am
by monkeykg
Alex wrote: Sat Dec 08, 2018 4:50 pm You need to copy/paste the code for qte_button screen (it's at the end of first post) and change

Code: Select all

label qte_setup(time_start, time_max, interval, trigger_key, x_align, y_align):

    $ time_start = time_start
    $ time_max = time_max
    $ interval = interval
    $ trigger_key = trigger_key
    $ x_align = x_align
    $ y_align = y_align

    call screen qte_simple
    # can change to call screen qte_button to switch to button mode

    $ cont = _return
    # 1 if key was hit in time, 0 if key not

    return
to

Code: Select all

label qte_setup(time_start, time_max, interval, trigger_key, x_align, y_align):

    $ time_start = time_start
    $ time_max = time_max
    $ interval = interval
    $ trigger_key = trigger_key
    $ x_align = x_align
    $ y_align = y_align

    call screen qte_button # <---
    # can change to call screen qte_button to switch to button mode

    $ cont = _return
    # 1 if key was hit in time, 0 if key not

    return
OH! thank you