Forum Discussion

XavierToyos's avatar
XavierToyos
Community Member
6 months ago

Issues with trigger and layer conditions

First of all I apologize for my English, I am not native English

I share with you a problem I have with a project, in case anyone knows what is happening and, most importantly, if someone knows how I can solve it.

It is a game in which the player drags a piece and places it on the question he wants to answer. Everything works correctly, but in the questions after the first one, the "attempt made" layer appears (for a few tenths of a second) (as you can see in the video).

I have done quite a few tests that I detail....

  • That layer always comes out in the questions after the first one in the order of the triggers. If the trigger for the first question is overridden, the second question comes out successful. If the trigger for the first and second questions is overridden, the third question comes out correct (the layer does not appear)
  • It does not matter the order in which it is carried out. If you answer questions two and three first (which does show the attempts layer) and then perform 1, the layer does not appear.
  • No matter the result of correct or incorrect in the result of the questions, the layer still appears in the questions after the first one.

I share a video and a simple project to see if anyone knows what happens, if someone has had the same thing happen to them and if you can give me a solution.

 

Thank you very much in advance

  • Nedim's avatar
    Nedim
    Community Member

    I recommend splitting ELSE statements into separate triggers. This way, you can make IF statements more specific, depending on whether your questions are validated or not. I have attached a story file with a solution to this problem.

  • XavierToyos's avatar
    XavierToyos
    Community Member

    Thank you Nedim. I didn't want to use more triggers so as not to make the project too heavy and I thought that with the structure that the triggers allow it would be enough, but I see that it wouldn't. The best thing is as you say, separate the triggers for separate instructions.