CameraFade
Description
Fades the screen to black or back to the game view. If the screen remains faded out for a while, a loading screen may appear.
function CameraFade(duration, state) --[[ ... ]] end
Parameters
duration
:integer
- How long the fade should take, in milliseconds.state
:integer
- Use 0 to fade out (to black), or 1 to fade in (show the game).
Return Values
None.
Example
None.