Hi,

Probably easiest would be to have a single animation over a variable and
then tie piece.ball.x and player.x to that.

        - Timo

On 1/24/12 1:21 PM, "Harri Pasanen" <ha...@mpaja.com> wrote:

>Hi,
>
>I found out that ParallelAnimation is not truly parallel, if I try to
>animate to objects
>moving next to one and other, like train wagons, I get overlaps.
>
>I'm trying to coax it into behaving by having a tiny pause, but it does
>not
>seem to help much
>
>     ParallelAnimation {
>       id: pushAnimHorizontal
>       NumberAnimation { target: piece.ball;  property: "x"; to:
>piece.ball.nX; duration: 170; easing.type: Easing.InOutQuad }
>       SequentialAnimation { // trickery to avoid overlap
>         PauseAnimation { duration: 30 }
>         NumberAnimation { target: player; property: "x"; to: player.nX;
>duration: 170; easing.type: Easing.InOutQuad }
>       }
>     }
>
>Even with above I get the occasional overlap.
>
>I wonder what is the minimum duration in PauseAnimation on different
>platforms?
>I'm testing on Meego N9 right now.
>
>Or is there a better way?
>
>Thanks,
>
>Harri
>_______________________________________________
>Qt-qml mailing list
>Qt-qml@qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-qml


_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to