Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Splash Screen won't load even with indie license

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9472

    Jaron

    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.

    #9473

    Christian
    Felgo Team

    Hi,

    please send the full project to support@felgo.com so we can have a closer look and quickly resolve your issue.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.