messageCounter
is just doing the different texts. When messageCounter
reaches maximum we say message1=true;
to be honest though, would that be a very long winded and erroneous way if you have multiple screens and multiple messages.
In this case, arrays would be better.
for a similar sketch with arrays see here: Any idea how to fix this? Quiz