Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Quick Time Events (QTEs/RTEs) in UnityScript???

Discussion in 'Scripting' started by ElectronicMotion, May 2, 2014.

  1. ElectronicMotion

    ElectronicMotion

    Joined:
    Jul 28, 2012
    Posts:
    45
    Hello,

    Does anyone know how to go about scripting a QTE (aka RTE or Precision Time Event)? I'm guessing you do something like.

    1.) Adding a time (or time.timeSinceLevelLoad) piece of script on an if statement,
    2.) Adding an if statement condition for input of the desired button,
    3.) and linking the if statement condition to a positive and negative outcome, like say points.

    The problem is, there are very few examples of QTEs being used due to their unpopular nature. I understand why, but I need to understand the principals behind them, because my game relies on the execution of precise time elements. I'm planning on using blender to create an animated scroll graphic that has most of the game input instructions for the player.

    Thanks!
     
  2. ElectronicMotion

    ElectronicMotion

    Joined:
    Jul 28, 2012
    Posts:
    45
    Bumpy Bump Bump
     
  3. toreau

    toreau

    Joined:
    Feb 8, 2014
    Posts:
    204
    QTE, aka RTE, aka PTE?

    Why don't you explain what you want to achieve instead, maybe with examples and some code?
     
  4. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    Yea I was gonna say that in order to access Quicktime, you'll probly need to write a native plugin.
     
  5. mweldon

    mweldon

    Joined:
    Apr 19, 2010
    Posts:
    109
    Off the cuff I would say you have a class called Qte that is instantiated at some point before your cinematic starts up. The constructor has parameters that define which input key needs to be pressed. It has functions called Start and End which are called by whatever is running the cinematic. If the input is pressed between the Start and End calls, then the Qte instance will fire off some event or callback to indicate success.
     
  6. Al3XXX

    Al3XXX

    Joined:
    Jul 13, 2014
    Posts:
    9
    noone plays games anymore today. :facepalm: