I am making a countdown timer for which should appear in 20 labels. I have made a list including all these labels and using it in one block instead of having 20 different blocks, though when I ran the code I get the following message:
Property getter was expecting a com.google.appinventor.components.runtime.Label component but got a YailList instead.
I can’t figure out what I am doing wrong, any advice would be greatly appreciated.
You need to iterate over your list “global timers” and set the component as “item”
This still will not work, because all you will do is set each label to 9 (tiempo - 1)
You need to reduce the value of tiempo by 1 after each full iteration
Thank you for your response, I still have not been able to get my logic to work. I am trying to reduce my blocks to the minimum possible. Could you please take a look at my blocks and give me a suggestion to find a way to get around this.
Here are my original blocks and what I am trying to replace them with
Thank you very much for your response. I am making a quiz App with 20 random questions, when the player initiates the game a question pops up allowing 10 seconds to answer, if the question is answered right and before 10 seconds another question appears allowing another 10 seconds to chose an answer. What I’m trying to do is count down in each of the timers as the game iterates through each question.