QTE need help! [SOLVED]

● ARCHIVED · READ-ONLY
Started by Klaykrow 12 posts View original ↗
  1. I know I know, most people hate button mashing QTEs, but it's important for my storyline since I'm making a horror game.

    I can't seem to find any help that is for VX ace, only MV.

    I'm needing to program an event with a "show picture" as the background and then you need to press a button at least 10 times or you get a game over.

    this is how I tried to program it by following an MV tutorial, but everytime I try to play it it freezes on the picture and the QTE doesnt happen.

    tumblr_pg0jmoVJE31u0p0sao1_540.png

    I also need there to be a time limit, so press it 10 times in 5 seconds or you get a game over.

    if anyone can help me it would be greatly appreciated.
  2. Got a link to the MV tutorial?

    And please show your FULL event window. The problem could be somewhere other than the event commands.
  3. Shaz said:
    Got a link to the MV tutorial?

    And please show your FULL event window. The problem could be somewhere other than the event commands.

    is this what you mean by full event window?
    tumblr_pg0lhgAtbf1u0p0sao1_540.png
    theres not a lot there so i didnt think that was the problem, im at the end of the game and i havent had any problems like this so far

    this was the tutorial i used for this script-
    https://forums.rpgmakerweb.com/index.php?threads/quick-time-events.71150/

    i didnt realize it was for MV, but i can't find any for VX ace at all, even all the youtube vids are for MV.
  4. Did you know that the button A is being pressed means SHIFT?
    Screenshot_125.jpg
  5. TheoAllen said:
    Did you know that the button A is being pressed means SHIFT?
    View attachment 99419

    i did not know that actually O:

    the problem is it doesnt even get to the quick time event at all, it just freezes halfway between the flash screen and the picture showing up. clicking any button (including shift) does nothing.
  6. Put the wait 2 frames before the conditional branch for the button press.

    For timer, do something like this:

    Code:
    Flash Screen
    Shake Screen
    Show Picture
    Wait 30 frames
    Control Variables [Counter] = 0
    Control Variables [Timer] = Game Data > Other > Play Time
    Control Variables [Timer] += 5
    Loop
      Wait 2 frames
      Conditional Branch: Button is being pressed
        Control Variables [Counter] += 1
        Play SE "blow"
        Conditional Branch: Variable [Counter] = 10
          Text: You made it!
          Break Loop
        End
      Else
        Control Variables [Timer 2] = Game Data > Other > Play Time
        Conditional Branch: Variable [Timer 2] >= Variable [Timer]
          Play SE "buzzer"
          Text: Out of time!
          Break Loop
        End
        End
    Repeat Above

    Of course, instead of showing an 'out of time' message, you can just go to the gameover screen. But a message will be quicker for testing/debugging.

    So the Timer variable gets set to the current play time, then you add 5 seconds to it. This is how long the player has to mash the buttons. And within the loop, you continually check the current play time, and when it reaches the preset level, it's game over.
  7. Shaz said:
    Put the wait 2 frames before the conditional branch for the button press.

    oh that fixed the freezing! thank you! but now it's letting me hold the button down instead of having to press it multiple times, is there a way i could make it so you have to lift your finger off the button? also i cant seem to figure out how to make this a timed thing in the way the person from the thread i linked meant. they were a little vague and confusing.

    thank you so much for the help so far, i really appreciate it

    EDIT

    didnt refresh the page before answering, my bad! lemme try that for the timed thing
  8. haha - yeah, I checked to see if there was a response before I edited my post.

    For the holding down issue, I suspect there's a script call you can use, but I don't know what it is, so try this ...

    Code:
    Loop
      Wait 2 frames
      Conditional Branch: Button is being pressed
        Conditional Branch: Switch [Held] = OFF
          Control Switches [Held] = ON
          Control Variables [Counter] += 1
          Play SE "blow"
          Conditional Branch: Variable [Counter] = 10
            Text: You made it!
            Break Loop
          End
        End
      Else
        Control Switches [Held] = OFF
        Control Variables [Timer 2] = Game Data > Other > Play Time
        Conditional Branch: Variable [Timer 2] >= Variable [Timer]
          Play SE "buzzer"
          Text: Out of time!
          Break Loop
        End
      End
    Repeat Above

    I have added a switch to indicate whether the button has been pressed, and it must NOT have been pressed (ie - have been released) in order to register the next press.
  9. Shaz said:
    haha - yeah, I checked to see if there was a response before I edited my post.

    For the holding down issue, I suspect there's a script call you can use, but I don't know what it is, so try this ...

    Code:
    Loop
      Wait 2 frames
      Conditional Branch: Button is being pressed
        Conditional Branch: Switch [Held] = OFF
          Control Switches [Held] = ON
          Control Variables [Counter] += 1
          Play SE "blow"
          Conditional Branch: Variable [Counter] = 10
            Text: You made it!
            Break Loop
          End
        End
      Else
        Control Switches [Held] = OFF
        Control Variables [Timer 2] = Game Data > Other > Play Time
        Conditional Branch: Variable [Timer 2] >= Variable [Timer]
          Play SE "buzzer"
          Text: Out of time!
          Break Loop
        End
      End
    Repeat Above

    I have added a switch to indicate whether the button has been pressed, and it must NOT have been pressed (ie - have been released) in order to register the next press.


    im not sure if i maybe put this is the wrong else? but now the moment i click a button it sends me to the game over screen instead of being a timer

    tumblr_pg0p6tpRU91u0p0sao1_1280.png
  10. Yes, you have your play time check nested in the wrong place. There shouldn't be an Else statement for the variable == 10 check. What it's doing now is saying if the button is pressed, add one to the variable and if the variable is 10 do something, but if the variable is not 10, go to gameover. Because the variable is only going to be 1, it's always going to go to gameover.

    When you do a conditional branch, if you don't need an Else statement, uncheck the box. It makes it easier to read, and more difficult to get confused.

    Compare yours and mine again, line by line.
  11. Shaz said:
    Yes, you have your play time check nested in the wrong place. There shouldn't be an Else statement for the variable == 10 check. What it's doing now is saying if the button is pressed, add one to the variable and if the variable is 10 do something, but if the variable is not 10, go to gameover. Because the variable is only going to be 1, it's always going to go to gameover.

    When you do a conditional branch, if you don't need an Else statement, uncheck the box. It makes it easier to read, and more difficult to get confused.

    Compare yours and mine again, line by line.

    ah i had some stuff off, but now its letting me click indefinitely with no bad or good end (albeit now its not doing the hold down thing)

    [EDIT]

    oh my god i didn't set it to add, but set instead x_x my bad lemme try this

    [EDIT]
    ok good news i got the main event to work, bad news is the timer still doesnt seem to work?

    [EDIT]
    I am a fool in mans shoes.
    It's all working now thank you so much, I owe you my life.

    i was accidentally making the timer +5 just a set 5 OTL

    I can't thank you enough for your help
  12. @Klaykrow When your query is fully resolved please Report your opening post and ask for it to be closed. Mods might not see a post or a change in the title but they will see a Report.
    [closed]IgnoreMe[/closed]