25.08.2013, 18:31
Hi, how would you approach this?
Tasks to do:
1) TASK 1: Show text1
2) TASK 2: Hide text1 and show text2 after 3 secs
3) TASK 3: Hide text2 and show text1 after 3 secs
Kind of a loop. The worst way possible is setting timers to and fro
ShowText1
{
Showtext2 && SetTimer for TASK 2
}
ShowText2
{
Showtext3 && SetTimer for TASK 1
}
I admit it can be done using timers and killing them, etc, but is there an efficient way?
Tasks to do:
1) TASK 1: Show text1
2) TASK 2: Hide text1 and show text2 after 3 secs
3) TASK 3: Hide text2 and show text1 after 3 secs
Kind of a loop. The worst way possible is setting timers to and fro
ShowText1
{
Showtext2 && SetTimer for TASK 2
}
ShowText2
{
Showtext3 && SetTimer for TASK 1
}
I admit it can be done using timers and killing them, etc, but is there an efficient way?