Forums

OverviewV-Play 1 Support › Load level after Scene

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4300

    phil.jahoda

    What I want to do is create a Scene in my Main.qml, and then, later on set a Level for that scene and display the scene.

    Displaying the scene works find using opacity, like you did in Squaby. But Loading the Level does not work as my Scene wont display it.

    Inside my Scene I have a Loader, for which’s property “source” I created a property alias. Now I change that property on Buttonclick in my Main.qml, but it has no effect. I set the loaders source to “Level01.qml” by default. When I then change it to “Level02.qml” on buttonclick the the scene is launched and level01 is displayed.

    It seems as if the new level is not loaded by just setting a different source.

    How would that be possible?

     

     

    #4301

    phil.jahoda

    UPDATE:

    I was wrong before, the level is in fact loaded, but all its contents are invisible. I can only see the HUD.

    As an example: When I click and shoot my arrow I can still hear baloons popping, but I cannot actually see them.

    #4302

    Christian
    V-Play Team
    #4303

    phil.jahoda

    Thank you very much, that was exactly what I needed now it works perfectly fine.

    #4306

    phil.jahoda

    Short question off topic: How do I set the app icon? (Icon that will be displayed on Phone Homescreen)

    #4307

    Alex
    V-Play Team
Viewing 6 posts - 1 through 6 (of 6 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