Pausing

Is there any way to create pausing functions, so that, code is only executed in steps for user interraction.
For example:- The ability to run a search algorithm where there is a pause of one second between each displayed comparison of a letter, or everytime the user clicka abutton, one line of code is run.

Ther is I have seen it before

er, maybe I’m not fully understanding your desire…but couldn’t you just have many keyframes with only one line of code on each frame ???

Yeah…

Check this out… What I can tell you probably want is something like a timer… Just call this timer and then when the timer is complete… Start performing the actions again…

if(pauseTimer == 0)
{
play();
} else {
stop();
}

Something like that… How you do the timer is your choice then…