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 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
    Felgo 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
    Felgo 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.