lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Chris Brodie wrote:
A) Is there a way to run my code until it hits some kind of Yield() where the state is stored and control passed back to my code so it can render frames. Then each frame I check to see if the script needs to do anything.

Have a look at coroutines, they should do exactly what you want.

BTW: You have to do something ybout your line length, Chris. The postings you make are quite non-standard, I think.

Enno.