Hello,
I've been struggling with a loading screen upon screen transition.
I have the game as windows exe, and when the game transitions from one scene to another the screen is black and for some can take longer than usual which made people think the game crashed.
How on earth do you get a loading screen?
Looking through Component_SceneBehavior I find
I tried changing to gs.Platform.isWindows but nothing works.
Any ideas how I can get a loading screen to show up on these transitions?
Thanks
I've been struggling with a loading screen upon screen transition.
I have the game as windows exe, and when the game transitions from one scene to another the screen is black and for some can take longer than usual which made people think the game crashed.
How on earth do you get a loading screen?
Looking through Component_SceneBehavior I find
Code:
prepareLoadingScreen: ->
@loadingBackgroundSprite = new gs.Sprite()
if gs.Platform.isWeb and !GameManager.inLivePreview
bitmap = new gs.Bitmap(300, 100)
bitmap.font.name = "Times New Roman"
bitmap.drawText(0, 0, 300, 100, "LOADING, PLEASE WAIT", 1, 1)
@loadingBackgroundSprite.x = (Graphics.width - bitmap.width) / 2
@loadingBackgroundSprite.y = (Graphics.height - bitmap.height) / 2
@loadingBackgroundSprite.bitmap = bitmap
@loadingBackgroundSprite.srcRect = new gs.Rect(0, 0, bitmap.width, bitmap.height)
I tried changing to gs.Platform.isWindows but nothing works.
Any ideas how I can get a loading screen to show up on these transitions?
Thanks