Construct2 Splashscreen on IntelXDK White bar or blink transition fix:

1
  • 7 favourites

Attached Files

The following files have been attached to this tutorial:

.rar

fixed-test-splashscreen.rar

Download now 2.58 MB

Stats

2,756 visits, 4,218 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Introduction

I don't know if Ashley & IntelXDK team will come to an agreement for a fix for this splash screen problem on the next release, so I will just set the versions which this fix was made for.

Intel XDK v3240 and below & Construct 2 r227 and below:

Have you noticed when you export your Construct 2 made game to IntelXDK crosswalk android that a white bar or white blink shows up on your game on Splashscreen transition.

According to @xmnboy from Intel Corporation:

it is definitely not being caused by the splash screen plugin or the XDK. It appears to be the result of some competition between the Crosswalk webview init and the Android webview init and the C2 canvas init or some other init code

The portion which is highlighted with a red color is the white bar created by the splashscreen on crosswalk android

The Crosswalk 15 effect of the problem without the fix

Subscribe to Construct videos now

The Crosswalk 15 effect of the problem shows a white bar on splashscreen transition made in Construct 2 and exported to IntelXDK

The Crosswalk 16 & 17 effect of the problem without the fix

Subscribe to Construct videos now

The Crosswalk 16 & 17 effect of the problem shows a short white edge blink on splashscreen transition made in Construct 2 and exported to IntelXDK

The Fix for the Splashscreen Problem

According to xmnboy of Intel Corporation, the fix will be to add the following code below to your intelxdk.config.additions.xml file:

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


0x00000000 is supposed to configure the webview background color to be "transparent black"; at least according to the docs and the plugin code...

Documentation 1

Documentation 2

It should be able to set that color to anything you want.

The result of the fix on Crosswalk 17

Subscribe to Construct videos now

*The fix code that xmnboy from Intel Corporation did solved the problem by replacing the white background with a black background.

Closing

This Splashscreen problem was solved by this forum post :

Scirra Forum Post Page for the Splashscreen Problem

I also have a sample IntelXDK project beside that has the fix code inside. Use that as your guide or example.

Thank you for reading. Happy Game Making.

.RAR

fixed-test-splashscreen.rar

Download now 2.58 MB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!