Hi,
in my project I am using a flickable with a SpriteSequence and some other items inside. I also added a SpriteBatchContainer to control the arrangement of the items and the Spritesequence. When I flick now, the Spritesequence is moving much faster, than the other items.
Here is some code to try:
<code class="language-qml">import VPlay 1.0 import QtQuick 1.1 GameWindow { activeScene: scene width: 960 height: 640 Scene { id: scene Flickable{ id: flickable width: parent.width height: parent.height contentHeight: background.height contentWidth: background.width Rectangle{ id: background color: "blue" width: 1000 height: 1000 z: 1 SpriteBatchContainer{ id: container z: 2 } MySprite{ id: sprite x: 500 y: 500 width: 100 height: 100 } Rectangle{ id: testRect color: "red" width: 70 height: 100 x: 480 y: 480 z: 3 opacity: 0.5 } }//Background }//Flickable }//Scene }
When you comment out the SpriteBatchContainer, the Spritesequence is placed/moving correctly, but I need a way to make the arrangement of the Spritesequence.
Thanks,
Heini