Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 1 Support › Add custom qml files in design mode

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3989

    pizzadude223

    So say I’m designing my main level and I have a bunch of qml files of crates and other collision objects. Is there a way I can place those boxes in design mode of the main level so it is like a level editor?

    #4037

    Christian
    Felgo Team

    Hi,
    at the moment unfortunately you can’t, because the design mode of QtCreator is only usable for the built-in QML elements like Image, Rectangle, Column, etc.

    However, we are working very hard on a new feature of Felgo, which will allow you to drag your objects into the game, and to change the properties of your objects while the game is running! You can then save the levels to your hard drive and load and continue modifying them at any time. The cool thing is, you can also add the level editor functionality to your released game, which allows your players to create content by themselves and so build a community around yor game!

    We expect to release this feature in January, so I hope you are fine with adding your entities manually in the code edtor so far.

    Can you think of any particulare features you would like to see in such a level editor? We have a bunch of ideas internally, but it would be great to hear what you would like to have.

    Cheers,
    Chris

    #4038

    pizzadude223

    I guess a big thing is being able to see where the edges of the screen are and being able to extend the scene so you can setup for a side scrolling game. Is there even a way to do scrolling right now? A particle editor inside the level editor might be nice as well. I cool feature that Unity has is how you can parent an object and the child object will always say in the same relative position to the parent object. I think you can already do that but I haven’t really tested that exact feature I guess.

    #4039

    Christian
    Felgo Team

    The GameWindow right now is the exact same screen as on the device – you can switch through different popular screen resolutions by pressing the keys 1-6. For example you can test how the game will look like on an iPhone3GS, iPhone4, iPad, etc. directly while running the game. Here is a list which resolutions are set when pressing the different keys: http://doc.felgo.com/beta/qml-components-vplay1-gamewindow.html

    Scrolling is already supported – you can use a Flickable element for that. We are also working on a side scrolling demo which we will release with the source code and a tutorial to demonstrates its usage in more detail.

    Great you mention the particle editor, as it is the first editor we are currently building with the LevelEditor API 🙂 It will be available in one of the next releases, and allows to modify the particle properties at runtime and see their effects. Like with the level editor, it is also usable on the device so you can test the performance impact of changing textures and properties directly on your target hardware.

    Regarding parenting: this is an essential feature which QML and the scene graph we are using are built upon: the children will always stay relative to the parent – so when you move a parent, all the children move as well. So if you write something like the following:

    
    Item {
      id: parent
      x: 20
      y:40
    
      Image {
        x: 40
        y: 10
        source: "childImage.png"
      }
    }
    

    Then the image will also be placed at 40/10 relative to the parent.

    Thanks for your feature requests – if you would find anything else helpful please let us know.

    Cheers,
    Chris

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

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded