I got an indie license, copy and pasted the code correctly into the main.qml, and set the identifier and version code in the config.json. When I load my game, I still get the V-play splash screen rather than my own. I am pretty sure I have all the code correct for it.
SplashScene.qml
SceneBase {
MultiResolutionImage {
anchors.centerIn: parent
source: "../../assets/img/splash.png"
}
}
Main.qml
GameWindow {
//...
property alias window: window
activeScene: splash
// show the splash and start the loading process as soon as the GameWindow is ready
Component.onCompleted: {
splash.opacity = 1
mainItemDelay.start()
}
// since the splash has a fade in animation, we delay the loading of the game until the splash is fully displayed for sure
Timer {
id: mainItemDelay
interval: 500
onTriggered: {
mainItemLoader.source = "MainItem.qml"
}
}
// as soon as we set the source property, the loader will load the game
Loader {
id: mainItemLoader
onLoaded: {
if(item) {
hideSplashDelay.start()
}
}
}
// give the game a little time to fully display before hiding the splash, just to be sure it looks smooth also on low-end devices
Timer {
id: hideSplashDelay
interval: 200
onTriggered: {
splash.opacity = 0
}
}
SplashScene {
id: splash
}
}
Any help would be much appreciated.