Code: Select all
screen timed_part:
bar value AnimatedValue(old_value=0.0, value=1.0, delay=3.0)
timer 3.0 action Jump("failed")
label start:
"..."
show screen timed_part
"Think fast! If you don't click, you will fail!"
hide screen timed_part
"Whew!"
return
label failed:
"You failed!"
return
That being said, timed segments are generally a bad idea. People may have different levels of language skills, and so read at different speeds - do you really want to punish them just because they're trying to work in a new language? Similarly, some people might be distracted at an inopportune moment because their child is shouting "No!", which to a one year old is a word that they've learned their parents say when they're about to do something naughty, and so they might as well save their parent the trouble, as the naughty thing is going to happen anyway*. Those people might not appreciate having to go back to replay a timed segment.
* Any resemblance to actual children is purely coincidental.