PDA

View Full Version : How can I add necessary QML files when I need them?



Yonetici
28th July 2012, 00:57
Hi,

Here is my project: http://www.youtube.com/watch?v=86V15cr6r8E

I need to launch each fruit in a right time like fruit ninja. However, when I add them in the main.qml file, I can't connect them with main.qml. Because for example, when I want to use id: rootapple which is in Apple.qml, rootapple can't be used in main.qml. It means, I can't reach any of animation in Apple.qml with if else conditions of main.qml file.

It doens't work also with a JS file. I try a lots of way to do this, but I couldn't.

All ideas are welcome.

wysota
3rd August 2012, 17:36
But what exactly are you having problems with? Why do you want to do anything with any animations from main.qml? Maybe you should have a look at code for "Same game" and the docs for managing dynamically created objects in Qt Quick.

Yonetici
6th August 2012, 18:52
I solved this problem :)

Now, only thing what I need to do is multi kill and best score. I tried to use same game as a base for high score type, however I didn't understand anything about it. For multi kill, it seems that it will be very hard to do with only using QML.

Here is v1.0.0 : http://www.youtube.com/watch?v=uOqBVveB5os