Screen <BadgeClient/>
Screen module is a module to control screen effects such as fades, transitions, and visual displays. It provides simple functions for creating smooth visual transitions in your game.
JO Functions > jo.screen.fadeIn()
<!-- @include: ./slots/headers.md#client|jo.screen.fadeIn -->
Fades the screen in with specified duration <br>
<!-- @include: ./slots/descriptions.md#client|jo.screen.fadeIn -->
JO Functions > jo.screen.fadeIn() > Syntax
jo.screen.fadeIn(duration, needWait)
JO Functions > jo.screen.fadeIn() > Parameters
duration : integer <BadgeOptional />
Duration of the fade in ms <br> default: 500
needWait : boolean <BadgeOptional />
Wait for the end of the fade <br> default: false
<!-- @include: ./slots/examples.md#client|jo.screen.fadeIn -->
<!-- @include: ./slots/footers.md#client|jo.screen.fadeIn -->
JO Functions > jo.screen.fadeOut()
<!-- @include: ./slots/headers.md#client|jo.screen.fadeOut -->
Fades the screen out with specified duration <br>
<!-- @include: ./slots/descriptions.md#client|jo.screen.fadeOut -->
JO Functions > jo.screen.fadeOut() > Syntax
jo.screen.fadeOut(duration, needWait)
JO Functions > jo.screen.fadeOut() > Parameters
duration : integer <BadgeOptional />
Duration of the fade in ms <br> default: 500
needWait : boolean <BadgeOptional />
Wait for the end of the fade <br> default: true
<!-- @include: ./slots/examples.md#client|jo.screen.fadeOut -->
<!-- @include: ./slots/footers.md#client|jo.screen.fadeOut -->