I would like to have your help for the optimization of some of my blocks, because I repeat 4 times an action which is similar to 4 buttons. But I can’t. Here are my unoptimized blocks:
I think I am not far from the solution, but there are bugs. For example, the color or sound change actions occur even on a button that is not in the list.
Or, I have the impression that as soon as I click on one of the buttons, the actions occur endlessly (I think the loop should be stopped, but I can’t).
So, if anyone here would be kind enough to help me solve my problem, that would be great fun! Thanks everyone!
No, I do not understand. What I am trying to do is very simple I think, but impossible to achieve.
Why does it not take into account ONLY the buttons that I put in the list? No matter which button I click, it takes into account the actions I have in “for each element of list”.
And I can’t change the color of the right answer button when I click on the wrong one.
If you are using for each item block, then you should not use direct index here, then there is no use of the block. You need to try to find the index by using index is in the list thing( item ) lost get gKobal answer button.
You need to replace the item with select list item list (get global button) index (index is in the list thing (component ) list (get global answer button)
Watch the video, normally there is a sound for the correct answers, and a sound for the wrong answers (and in addition a vibration when it is wrong).
No matter what answer I choose, I have both sounds playing at the same time and the vibration too, and no matter which button I click, it’s the same, even if I click on the “Pause” button in bottom of the screen