Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jeffrey_W_
Beginner
104 Views

Black Screens before and after game splash screen

At first i was getting the dreaded white flash on game start up. Fixed that with the forums help by adding:

<platform name="android">
    <!-- set Crosswalk default background color -->
    <!-- see http://developer.android.com/reference/android/graphics/Color.html -->
    <preference name="BackgroundColor" value="0x00000000" />
</platform>

and

<platform name="android">
    <!-- following requires the splash screen plugin -->
    <!-- see https://github.com/apache/cordova-plugin-splashscreen for details -->
    <preference name="SplashScreen" value="screen" />
    <preference name="AutoHideSplashScreen" value="false" />
    <!-- <preference name="SplashScreenDelay" value="30000" /> -->
    <preference name="FadeSplashScreen" value="false"/>
    <!-- <preference name="FadeSplashScreenDuration" value="3000"/> -->
    <preference name="ShowSplashScreenSpinner" value="false"/>
    <preference name="SplashMaintainAspectRatio" value="false" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
</platform>

But now i am noticing that when the game starts there is a black screen, then my games splash screen, then another black screen, then it goes to the main menu.

It's supposed to go from my games splash screen directly to the main menu. Any reason for the added black screen after my games splash screen? 

Any way to get rid of it, at least the 2nd black screen, so it does go to the main menu without 1st showing the 2nd black screen?

 

Thanks for any help with this.

 

 

Tags (2)
0 Kudos
3 Replies
Shahab_L_Intel
Employee
104 Views

Jeffery, is this a Construct2 game? What plugins do you have? The following link points to a similar problem and the user indicated that Cranberry Chartboost plugin caused the problem for him.

https://www.scirra.com/forum/how-do-i-stop-black-screen-after-splash-screen-intel-xdk_t129497

PaulF_IntelCorp
Employee
104 Views

Jeffrey -- as a comparison point, if you have an Android 5.x or 6.x device, try building WITHOUT Crosswalk and see if you get the same behavior on an Android 5+ device (don't try this experiment with an Android 4.x device, the results there are of no value). That will help to isolate if the issue is with Crosswalk.

Given that the Construct2 issue identified by Shahab also indicates the same issue exists in iOS, I do not think Crosswalk is the problem but, rather, a plugin is likely causing the problem. If a plugin requires a long time to initialize it can cause behavior like this.

You might also ask the Construct2 poster what he had to do to fix the problem on iOS, it might provide some clues as to how to fix it on Android.

Jeffrey_W_
Beginner
104 Views

Thanks for the replies, it's actually working now. Although i did nothing different, all is well on the black screen front.

 

 

Thank you

Reply