Forums

OverviewV-Play 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
    V-Play Team

    Hi,

    please send the full project to support@v-play.net 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support