1 Reply Latest reply on Mar 28, 2016 5:34 AM by resdesign

    Change keydown function in between labels



      Right now I have a menu with 2 possible answers, and I'm using labels and keydowns to jump to the "correct" and "wrong" answer animations for the questions.

      Now I was wondering if I can change the function of the key as it's moving between labels on the timeline. So that in question 1 the correct button is left and during question 2 the correct button is right. Because right now, the correct answer is always played when you press left.


      if (e.which == 87) {     //w key LEFT

        this.play("progressCorrect");    //destination 'label'



      if (e.which == 65) {          //a key RIGHT

        this.play("progressWrong");   //destination 'label'



      Thank you very much!