Re: xLua - pause execution
I don't think you can arbitrarily pause, say via an action, but you should look into coroutines which will let you yield out of a function, essentially pausing it at that point and letting you resume later. In fact I just recently fixed the coroutine support.
Re: xLua - pause execution
Re: xLua - pause execution
Also, did I interpret your question correctly or were you possibly referring to a sleep function to briefly pause script execution without returning control to mmf?
Re: xLua - pause execution
No. I want something like this:
There's a robot on the screen.
The script is
walk_left()
walk_up()
What happens: The robot walks left, say, 20 px. After that, it walks up 20 px.
Re: xLua - pause execution
yeah coroutines will help anywhere you have a batch of commands you want to run that might need to be spread over several frame loops.