Waiting until a function finishes?

Posted By: gSet

Waiting until a function finishes? - 10/06/10 14:47

This is probably a major noob question, but when I call a function (such as to fade the screen to black) from my main, the rest of the code continues instantly. How do I make it wait until the screen finishes fading before continuing? I could stick a wait after the function but I'd like something a little more reliable if it's going to take different amounts of time.
Posted By: Superku

Re: Waiting until a function finishes? - 10/06/10 14:48

wait_for(function)
Posted By: gSet

Re: Waiting until a function finishes? - 10/06/10 14:52

So simple! Thanks!
© 2024 lite-C Forums